You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug in Ubuntu 20.04 related to pip and setuptools.
When you pip install a Python module in Ubuntu 20.04 in editable mode (-e flag), the module is not listed in pip.
When the module is installed normally (no -e flag), everything works as usual, and pip finds the module.
This happens because depending on the setuptools version, the module is installed at a different path (and thus not found in the PYTHONPATH in some cases):
setuptools 45.2.0 works fine
Module installation path: /usr/local/lib/python3.8/dist-packages/
setuptools version
setuptools>=60.0.0
Python version
3.8.10
OS
Ubuntu 20.04
Additional environment information
No response
Description
Hi all,
I found a bug in Ubuntu 20.04 related to pip and setuptools.
When you pip install a Python module in Ubuntu 20.04 in editable mode (
-e
flag), the module is not listed in pip.When the module is installed normally (no
-e
flag), everything works as usual, and pip finds the module.This happens because depending on the setuptools version, the module is installed at a different path (and thus not found in the PYTHONPATH in some cases):
setuptools 45.2.0
works fineModule installation path:
/usr/local/lib/python3.8/dist-packages/
setuptools 62.4.0
breaksModule installation path:
/usr/lib/python3.8/site-packages/
The last working version is
setuptools==59.8.0
. Starting fromsetuptools==60.0.0
it breaks.I opened an issue in pip and was forwarded here.
Expected behavior
The module should be correctly installed and listed.
How to Reproduce
I attach a minimal Dockerfile to reproduce the issue.
Output
The text was updated successfully, but these errors were encountered: