我想在Windows 10(Python 3.6.10)上安装pycld3
。
由于该轮子不适用于Windows,因此我需要安装源代码和先决条件,例如:
当我调用命令时: python -m pip安装C:\ Users \ User \ Downloads \ protobuf-python-3.13.0.tar.gz 发生此错误:
ERROR: Command errored out with exit status 1:
command: 'E:\Anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\WINDOWS\\TEMP\\pip-req-build-bb7bo_29\\setup.py'"'"'; __file__='"'"'
C:\\WINDOWS\\TEMP\\pip-req-build-bb7bo_29\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\WINDOWS\TEMP\pip-pip-egg-info-m002q0yu'
cwd: C:\WINDOWS\TEMP\pip-req-build-bb7bo_29\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\Anaconda\lib\tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\WINDOWS\\TEMP\\pip-req-build-bb7bo_29\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我去了目录C:\\WINDOWS\\TEMP\\
,实际上pip-req-build-bb7bo_29
目录和setup.py
不存在。
我还没有发现与pip-req-build-bb7bo_29
有关的任何此类问题。
点子版本:pip 20.2.2 from e:\anaconda\lib\site-packages\pip (python 3.6)
Input:
python -c "import sys; import setuptools; print(setuptools.version.__version__)"
--> 50.0.3