unbentu pip install python-ESL安装失败,更换多个版本也不能安装成功,如何解决
pangyou@pangyou-HP-EliteDesk-880-G1-TWR:~$ pip install swig
Defaulting to user installation because normal site-packages is not writeable
Collecting swig
Using cached swig-4.2.1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.9 MB)
Installing collected packages: swig
WARNING: The scripts swig and swig4.0 are installed in '/home/pangyou/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed swig-4.2.1
pangyou@pangyou-HP-EliteDesk-880-G1-TWR:~$ pip install python-ESL
Defaulting to user installation because normal site-packages is not writeable
Collecting python-ESL
Using cached python-ESL-1.4.18.tar.gz (40 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: python-ESL
Building wheel for python-ESL (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
copying ESL.py -> build/lib.linux-x86_64-3.10
running build_ext
building '_ESL' extension
swigging ESL.i to ESL_wrap.cpp
swig -python -classic -c++ -DMULTIPLICITY -threads -I. -o ESL_wrap.cpp ESL.i
Deprecated command line option: -classic. This option is no longer supported.
error: command '/usr/bin/swig' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-ESL
Running setup.py clean for python-ESL
Failed to build python-ESL
Installing collected packages: python-ESL
Running setup.py install for python-ESL ... error
error: subprocess-exited-with-error
× Running setup.py install for python-ESL did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
/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 build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
copying ESL.py -> build/lib.linux-x86_64-3.10
running build_ext
building '_ESL' extension
swigging ESL.i to ESL_wrap.cpp
swig -python -classic -c++ -DMULTIPLICITY -threads -I. -o ESL_wrap.cpp ESL.i
Deprecated command line option: -classic. This option is no longer supported.
error: command '/usr/bin/swig' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> python-ESL
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
pangyou@pangyou-HP-EliteDesk-880-G1-TWR:~$