![]() Python3.8-distutils - distutils package for Python (version 3.8) Python3.7-distutils - distutils package for Python (version 3.7) Python3-stsci.distutils - Python3 packaging utilities for STScI's packages Python3-stdeb - Python to Debian source package conversion plugins for distutils Python3-distutils-extra - enhancements to the Python3 build system Python3-distlib - low-level components of python distutils2/packaging Python-stsci.distutils - Python packaging utilities for STScI's packages Python-distutils-extra - enhancements to the Python build system Python-distlib - low-level components of python distutils2/packaging Python-d2to1 - Python support for distutils2-like setup.cfg files as package metadata Pypy-setuptools - PyPy Distutils Enhancements Python3-setuptools - Python3 Distutils Enhancements Python3-d2to1 - Python3 support for distutils2-like setup.cfg files as package metadata Python-setuptools-doc - Python Distutils Enhancements (documentation) Python-setuptools - Python Distutils Enhancements to get all available versions (assume using apt package manager): $ apt-cache search distutils Then I tried installing some modules and everything works fine.Įnsure install appropriate version based on python version, e.g. Pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.7) Then I tried again python3.7 -m pip -V and got Sudo ln -s /usr/lib/python3.8/distutils /usr/lib/python3.7/ Sudo cp -r /usr/lib/python3.8/distutils /usr/lib/python3.7/distutilsĪlternatively: sudo mv /usr/lib/python3.7/distutils/ /usr/lib/python3.7/distutils_back This was a lot more promising, and since pip3 did work, I assumed that this distutils worked too, and I tried to copy it to the python3.7 folder by running this command: I found the following files: command Folder Then I had a look at what was inside /usr/lib/python3.8/distutil and it was totally different. I had no idea how many files should be in there, or what the code should be, but I knew that those two files were either wrong or missing another file. I opened it, and saw the _pycache_, the _init_.py file and a version.py file. Then I looked at /usr/lib/python3.7 and saw the folder distutil. I looked at /usr/lib/python3/dist-packages and everything looked fine. I then tried python3.7 -m pip3 -V, got /usr/bin/python3.7: No module named pip3 so I decided to have a look in the /usr/lib files. ![]() I tried a lot of stuff to fix it and to reinstall distutils, and I found out by pure luck, that pip3, for python3.8 did work. I upgraded my system and pip stopped working for python3.7, and I also got the error ModuleNotFoundError: No module named 'distutils.util' ![]() ![]() I use Parrot OS, which is, as Ubuntu, Debian based. You should be able to do sudo apt install python3-distutils and it should work. ModuleNotFoundError: No module named 'apt_pkg'ĭebian has decided that distutils is not a core python package, so it is not included in the last versions of debian and debian-based OSes. ModuleNotFoundError: No module named 'distutils.util'įile "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthookįrom apport.fileutils import likely_packaged, get_recent_crashesįile "/usr/lib/python3/dist-packages/apport/_init_.py", line 5, in įile "/usr/lib/python3/dist-packages/apport/report.py", line 30, in įile "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in įrom apport.packaging_impl import impl as packagingįile "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in įile "/usr/lib/python3/dist-packages/apt/_init_.py", line 23, in ![]() After updating to Ubuntu 20.04, whenever I run: pip install įile "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main.py", line 10, in įrom pip._ import autocompleteįile "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in įrom pip._parser import create_main_parserįile "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main_parser.py", line 7, in įile "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/cmdoptions.py", line 19, in ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |