fkrull / docker-multi-python Goto Github PK
View Code? Open in Web Editor NEWA Docker image with multiple Python versions
A Docker image with multiple Python versions
Can you please explain in your README how to run that container?
It is not clear for someone new to Docker.
In my specific case I don't want to land in the REPL but in a bash shell and doing some tests with the different python versions. E.g.
python3.6 ./myscript.py
python3.11 ./myscript.py
But I don't know how to start your container that way.
Please, add support for Python 3.10 since it is already officially released
Run a docker container based on the image:
docker run -it fkrull/multi-python:focal sh
Install numpy
and import it inside the container:
python3.9 -m pip install numpy && python3.9 -c "import numpy"
Collecting numpy
Downloading numpy-1.20.1-cp39-cp39-manylinux2010_x86_64.whl (15.4 MB)
|████████████████████████████████| 15.4 MB 7.8 MB/s
Installing collected packages: numpy
Successfully installed numpy-1.20.1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/numpy/__init__.py", line 156, in <module>
from . import random
File "/usr/local/lib/python3.9/dist-packages/numpy/random/__init__.py", line 179, in <module>
from . import _pickle
File "/usr/local/lib/python3.9/dist-packages/numpy/random/_pickle.py", line 1, in <module>
from .mtrand import RandomState
ImportError: /usr/local/lib/python3.9/dist-packages/numpy/random/mtrand.cpython-39-x86_64-linux-gnu.so: undefined symbol: PyCMethod_New
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.