当我使用时出现此错误pip install WeasyPrint
pip install WeasyPrint
Collecting WeasyPrint
Using cached WeasyPrint-51-py3-none-any.whl (359 kB)
Collecting Pyphen>=0.9.1
Using cached Pyphen-0.9.5-py2.py3-none-any.whl (3.0 MB)
Collecting tinycss2>=1.0.0
Using cached tinycss2-1.0.2-py3-none-any.whl (61 kB)
Collecting cssselect2>=0.1
Downloading cssselect2-0.3.0-py3-none-any.whl (31 kB)
Collecting cairocffi>=0.9.0
Using cached cairocffi-1.1.0.tar.gz (68 kB)
ERROR: Command errored out with exit status 1:
command: 'd:\myshop\virtual\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-qwm3sa11\\cairocffi\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-qwm3sa11\\cairocffi\\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:\Users\USER\AppData\Local\Temp\pip-pip-egg-info-tqlmdfuq'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-qwm3sa11\cairocffi\
Complete output (107 lines):
Traceback (most recent call last):
File …Run Code Online (Sandbox Code Playgroud)