Bitnami Odoo 堆栈上的 Pycups

Pycups on Bitnami Odoo Stack

您好,我正在尝试在我的 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.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.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.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.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!