pip install -e . error
EsmaeiliSina opened this issue · comments
Sina Esmaeili commented
I force the following error when i run the pip install -e .
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Installing collected packages: UNKNOWN
Attempting uninstall: UNKNOWN
Found existing installation: UNKNOWN 0.0.0
Uninstalling UNKNOWN-0.0.0:
Successfully uninstalled UNKNOWN-0.0.0
Running setup.py develop for UNKNOWN
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running develop
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.10/aioquic/_buffer.abi3.so -> aioquic
error: could not create 'aioquic/_buffer.abi3.so': No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in /usr/local/lib/python3.10/dist-packages/UNKNOWN-0.0.0-py3.10-linux-x86_64.egg
Rolling back uninstall of unknown
Moving to /usr/local/lib/python3.10/dist-packages/UNKNOWN-0.0.0-py3.10-linux-x86_64.egg
from /usr/local/lib/python3.10/dist-packages/~NKNOWN-0.0.0-py3.10-linux-x86_64.egg
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running develop
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.10/aioquic/_buffer.abi3.so -> aioquic
error: could not create 'aioquic/_buffer.abi3.so': No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Bob Halley commented
I cannot reproduce this on Debian Bookworm or on macOS. It's unusual that it refers to package UNKNOWN. Googling this suggests that setuptools is too old. Maybe make a venv and then upgrade setuptools in it?