ModuleNotFoundError: No module named '_ctypes' New python executable in /opt/petadex/venv/bin/python3.7Īlso creating executable in /opt/petadex/venv/bin/pythonĬomplete output from command /opt/petadex/venv/bin/python3.7 - setuptools pip wheel:įile "/usr/share/python3-wheels/pip-9.0.3-py2.p圓-none-any.whl/pip/_init_.py", line 44, in įile "/usr/share/python3-wheels/pip-9.0.3-py2.p圓-none-any.whl/pip/vcs/mercurial.py", line 9, in įile "/usr/share/python3-wheels/pip-9.0.3-py2.p圓-none-any.whl/pip/download.py", line 36, in įile "/usr/share/python3-wheels/pip-9.0.3-py2.p圓-none-any.whl/pip/utils/glibc.py", line 4, in įile "/usr/local/lib/python3.7/ctypes/_init_.py", line 7, in įrom _ctypes import Union, Structure, Array usr/lib/python3.6/site-packages/virtualenv.py:1043: DeprecationWarning: the imp module is deprecated in favour of importlib see the module's documentation for alternative uses Running virtualenv with interpreter /usr/local/bin/python3.7 I am now trying to create a virtualenv and get the following: $ virtualenv -p python3.7 venv I did the above and also $ ln -s /usr/local/bin/python3.7 /usr/bin/python3.7