Bitnami Odoo Stack上的Pycups

时间:2015-01-12 11:54:50

标签: python odoo cups

您好我正在尝试在我的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有自己的环境。 感谢

1 个答案:

答案 0 :(得分:2)

参考pycups文档。

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