gpt4 book ai didi

python - Bitnami Odoo Stack 上的 Pycups

转载 作者:行者123 更新时间:2023-12-01 04:53:44 24 4
gpt4 key购买 nike

您好,我正在尝试在我的 Windows 8 PC 上安装 pycups。但不知道该怎么做。我收到错误:

C:\Users\Manish>pip install pycups
Collecting pycups
Using cached pycups-1.9.70.tar.bz2
Installing collected packages: pycups
Running setup.py install for pycups
building 'cups' extension
C:\Users\Manish\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pytho
n\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DVERSION="1.9.70
" -IC:\Python27\include -IC:\Python27\PC /Tccupsmodule.c /Fobuild\temp.win-amd64
-2.7\Release\cupsmodule.obj
cupsmodule.c
cupsmodule.c(23) : fatal error C1083: Cannot open include file: 'cups/cups.h
': No such file or directory
error: command '"C:\Users\Manish\AppData\Local\Programs\Common\Microsoft\Vis
ual C++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2
Complete output from command C:\Python27\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\manish\\appdata\\local\\temp\\pip-build-zkldnw\\pyc
ups\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().rep
lace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\manish\appdata
\local\temp\pip-rcpejp-record\install-record.txt --single-version-externally-man
aged --compile:
running install

running build

running build_ext

building 'cups' extension

creating build

creating build\temp.win-amd64-2.7

creating build\temp.win-amd64-2.7\Release

C:\Users\Manish\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pytho
n\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DVERSION="1.9.70
" -IC:\Python27\include -IC:\Python27\PC /Tccupsmodule.c /Fobuild\temp.win-amd64
-2.7\Release\cupsmodule.obj

cupsmodule.c

cupsmodule.c(23) : fatal error C1083: Cannot open include file: 'cups/cups.h
': No such file or directory

error: command '"C:\Users\Manish\AppData\Local\Programs\Common\Microsoft\Vis
ual C++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2

----------------------------------------
Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:
\\users\\manish\\appdata\\local\\temp\\pip-build-zkldnw\\pycups\\setup.py';exec(
compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record c:\users\manish\appdata\local\temp\pip-rcpe
jp-record\install-record.txt --single-version-externally-managed --compile" fail
ed with error code 1 in c:\users\manish\appdata\local\temp\pip-build-zkldnw\pycu
ps

请帮忙

我还尝试了 bitnami Odoo v8 Stack。但同样的问题,因为我不知道如何添加 pycups 模块。 Bitnami 有自己的环境。谢谢

最佳答案

引用pycups文档。

由于目前没有适用于 Windows 的可用软件包,因此您无法在 Windows 机器上运行。在 Mac OS 或任何 *NIX 环境中尝试。您无法将 Linux 软件包安装到 Windows 中!

关于python - Bitnami Odoo Stack 上的 Pycups,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27901399/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com