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)
When using CSS pseudo-elements to control element...
Preface First, let me introduce Keepalived, which...
Result:Implementation Code html <link href=...
Yum (full name Yellow dog Updater, Modified) is a...
Method 1: Use the SET PASSWORD command MySQL -u r...
Written in front A database is essentially a shar...
Enter ssh and enter the following command to rese...
MySQL is a multi-user managed database that can a...
The img element allows us to embed images in HTML...
The nginx configuration is as follows: Such as ht...
Table of contents 1 Test Environment 1.1 Server H...
What is "Sticky Footer" The so-called &...
Reference Documentation Official Docker installat...
Preface Let me share with you how I deployed a Sp...
I would like to quote an article by Zhang Xinxu a...