简体   繁体   English

在Windows的Python 3.4上安装Twain模块

[英]Installing Twain Module on Python 3.4 on Windows

I followed this steps but got an error message : 我按照以下步骤操作,但收到一条错误消息:

C:\Users\PB>pip install twain --no-compile
Downloading/unpacking twain
Could not find any downloads that satisfy the requiremen
Cleaning up...
No distributions at all found for twain
Storing debug log for failure in C:\Users\PB\pip\pip.log

I researched and found a solution and try this command: 我研究并找到了解决方案,然后尝试以下命令:

pip install twain == 1.0.5 --allow-unverified twain

and got an error message : 并收到一条错误消息:

Exception:
Traceback (most recent call last):
File "C:\Python3.4\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
   File "C:\Python3.4\lib\site-packages\pip\commands\install.py", line 257,in run   
InstallRequirement.from_line(name, None))
File "C:\Python3.4\lib\site-packages\pip\req.py", line 172, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "C:\Python3.4\lib\site-packages\pip\req.py", line 70, in __init__
     req = pkg_resources.Requirement.parse(req)
File "C:\Python3.4\lib\site-packages\pip\_vendor\pkg_resources.py", line2606,
in parse
reqs = list(parse_requirements(s))
File "C:\Python3.4\lib\site-packages\pip\_vendor\pkg_resources.py",line2532 
in parse_requirements
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '==')

Storing debug log for failure in C:\Users\PB\pip\pip.log

Howcan I solve install twain ? 如何解决安装TWAIN?

you can download code for python 3.x from http://www.lfd.uci.edu/~gohlke/pythonlibs/#twainmodule 您可以从http://www.lfd.uci.edu/~gohlke/pythonlibs/#twainmodule下载python 3.x的代码

and install by manually 并手动安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM