[英]Zebra Printer Python Package in Pycharm
I am trying to install the zebra-0.0.5 package in pycharm on a windows machine. 我正在尝试在Windows机器上的pycharm中安装zebra-0.0.5软件包。 I did have pip and win32 installed. 我确实安装了pip和win32。 But this error keep showing up. 但是此错误不断出现。 Would someone had similar experience before help? 有人在获得帮助之前会有类似的经历吗? Thanks! 谢谢!
Could not find a version that satisfies the requirement win32print (from zebra) (from versions: ) No matching distribution found for win32print (from zebra) 找不到满足要求的版本win32print(来自zebra)(来自版本:)找不到与win32print匹配的发行版(来自zebra)
The zebra module depends on a module called win32print on Windows for the installation to complete. 斑马模块依赖于Windows上名为win32print的模块来完成安装。 Since the win32print module is no longer available anywhere it gives you error. 由于win32print模块不再在任何地方都可用,因此会出现错误。
Possible Solution 1: 可能的解决方案1:
Possible Solution 2: 可能的解决方案2:
Install pywin32 / pypiwin32 . 安装pywin32 / pypiwin32 。 Install any one of the modules and use it. 安装任何一个模块并使用。
Download zebra 0.0.5 source code from here 从此处下载zebra 0.0.5源代码
Extract it and edit the setup.py file and more specifically the line 23 which says install_requires='pywin32/pypiwin32' : 解压缩并编辑setup.py文件,更具体地说是编辑23行,该行显示install_requires ='pywin32 / pypiwin32' :
if sys.platform.lower().startswith('win'): install_requires = 'pywin32/pypiwin32' else: install_requires = None
Now, edit the zebra.py file and change all references from win32print to pywin32/pypiwin32. 现在,编辑zebra.py文件,并将所有引用从win32print更改为pywin32 / pypiwin32。
NOTE: I haven't tried this solution as I don't have a zebra printer. 注意:由于没有斑马打印机,因此我没有尝试过此解决方案。 I hope this would help you. 希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.