text1) Download the Ubuntu image docker pull ubuntu 2) View the image docker images 3) Run the container docker run -itd --name ubuntu-test ubuntu 4) Enter the container sudo docker exec -it ubuntu-test /bin/bash 5) Update source apt-get update If you don't do this, you may run into the following problems:
Just run it once6) Install python3 apt-get install python3 7) Install pip3 apt-get install python3-pip 8) Testing pip3 install numpy Collecting numpy Downloading numpy-1.20.1-cp38-cp38-manylinux2010_x86_64.whl (15.4 MB) |███████████████████████████████████| 15.4 MB 1.9 MB/s Installing collected packages: numpy Successfully installed numpy-1.20.1 This is the end of this article about installing Python3 and Pip in Ubuntu in Docker. For more information about installing Python3 and Pip in Docker Ubuntu, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Master the commonly used HTML tags for quoting content in web pages
>>: How to uninstall MySQL cleanly (tested and effective)
0x0 Introduction First of all, what is a hash alg...
Learning Linux commands is the biggest obstacle f...
Table of contents variable Data Types Extension P...
This article shares the specific code of JavaScri...
1. Nexus configuration 1. Create a docker proxy U...
Joint Index The definition of the joint index in ...
Mysql converts query result set into JSON data Pr...
Preface In MySQL, multi-table join query is a ver...
Overview of MySQL Partitioned Tables We often enc...
This article introduces the method of using CSS3 ...
Sometimes, we need to use the hyperlink <a> ...
Demand Background Recently, I plan to use Vue and...
Today I accidentally saw the parameter slave_exec...
Nowadays, whether you are working on software or w...
When we open the source code of a regular website...