Git Product home page Git Product logo

docker-multi-python's People

Contributors

fkrull avatar michalkubek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-multi-python's Issues

How can I run that?

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.

`import numpy` fails in Python 3.9 on fkrull/multi-python:focal

How to reproduce the issue

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"

Output

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

System specifications

  • Windows Docker Desktop with WSL2 backend
  • Docker Engine v20.10.5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.