小编Han*_*s G的帖子

通过pip安装pycups缺少cups.h?

我想通过 pip 安装 pycups 模块,但出现以下错误:

\n\n
Collecting pycups\n  Using cached pycups-2.0.1.tar.gz (62 kB)\nBuilding wheels for collected packages: pycups\n  Building wheel for pycups (setup.py) ... error\n  ERROR: Command errored out with exit status 1:\n   command: \'c:\\users\\gebker\\appdata\\local\\programs\\python\\python38-32\\python.exe\' -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'C:\\\\Users\\\\Gebker\\\\AppData\\\\Local\\\\Temp\\\\pip-install-3bmyk8xu\\\\pycups\\\\setup.py\'"\'"\'; __file__=\'"\'"\'C:\\\\Users\\\\Gebker\\\\AppData\\\\Local\\\\Temp\\\\pip-install-3bmyk8xu\\\\pycups\\\\setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' bdist_wheel -d \'C:\\Users\\Gebker\\AppData\\Local\\Temp\\pip-wheel-jvk619n9\'\n       cwd: C:\\Users\\Gebker\\AppData\\Local\\Temp\\pip-install-3bmyk8xu\\pycups\\\n  Complete output (11 lines):\n  running bdist_wheel\n  running build\n  running build_ext\n  building \'cups\' extension\n  creating build\n  creating build\\temp.win32-3.8\n  creating build\\temp.win32-3.8\\Release\n  C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x86\\cl.exe /c …
Run Code Online (Sandbox Code Playgroud)

windows pip cups python-3.x pycups

2
推荐指数
1
解决办法
1966
查看次数

标签 统计

cups ×1

pip ×1

pycups ×1

python-3.x ×1

windows ×1