|
楼主 |
发表于 2020-4-24 11:08:06
|
显示全部楼层
请问whl文件在哪下载呀?我在ltd.edu上下载得很慢,而且下载到一半会提示网络有问题。我上镜像下载的都是tar.gz
pip install pycairo然后报错了,错误码放在最下面
错误码貌似是提示我pip版本过低了,然后我用了
pip install --user --upgrade pip
python -m pip install --upgrade pip
python -m pip install -U --force-reinstall pip
下着下着都失败了,错误码是exception开头的,但是每次下载的数据越来越少,可能多试几次可以
以下是错误码:
ERROR: Command errored out with exit status 1:
command: 'c:\users\administrator\appdata\local\programs\python\python38-32\
python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\User
s\\Administrator\\AppData\\Local\\Temp\\pip-install-2jcvklqf\\pycairo\\setup.py'
"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-
2jcvklqf\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__fil
e__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(
code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppDa
ta\Local\Temp\pip-record-lw4pkpsk\install-record.txt' --single-version-externall
y-managed --compile
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-2jcvklqf\pyc
airo\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\cairo
copying cairo\__init__.py -> build\lib.win32-3.8\cairo
copying cairo\__init__.pyi -> build\lib.win32-3.8\cairo
copying cairo\py.typed -> build\lib.win32-3.8\cairo
running build_ext
building 'cairo._cairo' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\cairo
C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /
W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAI
RO_VERSION_MICRO=1 -Ic:\users\administrator\appdata\local\programs\python\python
38-32\include -Ic:\users\administrator\appdata\local\programs\python\python38-32
\include "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Prog
ram Files\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files\Windows
Kits\8.1\include\shared" "-IC:\Program Files\Windows Kits\8.1\include\um" "-IC:
\Program Files\Windows Kits\8.1\include\winrt" /Tccairo/device.c /Fobuild\temp.w
in32-3.8\Release\cairo/device.obj
device.c
c:\users\administrator\appdata\local\temp\pip-install-2jcvklqf\pycairo\cairo
\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl
.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\administrator\appdata\l
ocal\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, toke
nize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-ins
tall-2jcvklqf\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\A
ppData\\Local\\Temp\\pip-install-2jcvklqf\\pycairo\\setup.py'"'"';f=getattr(toke
nize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"
'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --rec
ord 'C:\Users\Administrator\AppData\Local\Temp\pip-record-lw4pkpsk\install-recor
d.txt' --single-version-externally-managed --compile Check the logs for full com
mand output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and. |
|