在 Python 中安装包时出现弃用的 wheel 错误
Deprecated wheel error when installing package in Python
我正在使用 Python 3-6.10,Pycld2
支持的软件包。
但是当我在命令提示符或 Jupyter Notebook 中调用 pip install pycld2
时,会出现相同的消息:
**ValueError: path '/home/rmyeid/code/pycld2/bindings/encodings.cc' cannot be absolute**
----------------------------------------
ERROR: Failed building wheel for pycld2
Running setup.py clean for pycld2
Failed to build pycld2
DEPRECATION: Could not build wheels for pycld2 which do not use PEP 517.
pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality.
**A possible replacement is to fix the wheel build issue reported above.
You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.**
Installing collected packages: pycld2
Running setup.py install for pycld2 ... error
ERROR: Command errored out with exit status 1: 'E:\Anaconda\python.exe' -u -c 'import sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\WINDOWS\TEMP\pip-install-gdceaml0\pycld2\setup.py'"'"';
__file__='"'"'C:\WINDOWS\TEMP\pip-install-gdceaml0\pycld2\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();
exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record 'C:\WINDOWS\TEMP\pip-record-nifp6wxi\install-record.txt' --single-version-externally-
managed --compile --install-headers 'E:\Anaconda\Include\pycld2' Check the logs for full command output.
据我了解,轮子似乎有问题(我不知道如何解决),
ValueError 编码和命令错误退出状态 1 的问题。
不知道是不是都是同一个问题。
我已经按照 link https://github.com/pypa/pip/issues/8368 仍然找不到解决方案。
此问题已在 https://github.com/aboSamoor/pycld2/issues/23 上报告。作为解决方法,您可以使用来自 GitHub 的源代码。下面的提交指向 0.42 版本的 pycld2 的 Zip 存档。
pip install https://github.com/aboSamoor/pycld2/zipball/e3ac86ed4d4902e912691c1531d0c5645382a726
我正在使用 Python 3-6.10,Pycld2
支持的软件包。
但是当我在命令提示符或 Jupyter Notebook 中调用 pip install pycld2
时,会出现相同的消息:
**ValueError: path '/home/rmyeid/code/pycld2/bindings/encodings.cc' cannot be absolute**
----------------------------------------
ERROR: Failed building wheel for pycld2
Running setup.py clean for pycld2
Failed to build pycld2
DEPRECATION: Could not build wheels for pycld2 which do not use PEP 517.
pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality.
**A possible replacement is to fix the wheel build issue reported above.
You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.**
Installing collected packages: pycld2
Running setup.py install for pycld2 ... error
ERROR: Command errored out with exit status 1: 'E:\Anaconda\python.exe' -u -c 'import sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\WINDOWS\TEMP\pip-install-gdceaml0\pycld2\setup.py'"'"';
__file__='"'"'C:\WINDOWS\TEMP\pip-install-gdceaml0\pycld2\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();
exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record 'C:\WINDOWS\TEMP\pip-record-nifp6wxi\install-record.txt' --single-version-externally-
managed --compile --install-headers 'E:\Anaconda\Include\pycld2' Check the logs for full command output.
据我了解,轮子似乎有问题(我不知道如何解决), ValueError 编码和命令错误退出状态 1 的问题。 不知道是不是都是同一个问题。 我已经按照 link https://github.com/pypa/pip/issues/8368 仍然找不到解决方案。
此问题已在 https://github.com/aboSamoor/pycld2/issues/23 上报告。作为解决方法,您可以使用来自 GitHub 的源代码。下面的提交指向 0.42 版本的 pycld2 的 Zip 存档。
pip install https://github.com/aboSamoor/pycld2/zipball/e3ac86ed4d4902e912691c1531d0c5645382a726