python - Bitnami Odoo Stack 上的 Pycups

标签 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 有自己的环境。 谢谢

最佳答案

引用pycups文档。

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

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

相关文章:

python - Django 教程第 1 部分 'Poll' 对象没有改变

python - 无法在电子邮件中添加附件

python - cupsfilter 不适用于 Python subprocess.call()

python - 整数分区的递归公式

python - 使用 'struct_name.*' 选择时为所有列提供前缀

python - github3.py 带有 IssueEvents 的 AttributeError

javascript - 如何在 Odoo 中聚焦一个 TransientModel 形式的字段?

xml - 如何为位于 One2Many 字段中的特定字段设置只读字段

printing - CUPS:如何修复点阵打印机的右边距

ubuntu-16.04 - 打印机无法向 CUPS 报告问题