Installing Twain Module on Python 3.4 on Windows

允我心安 提交于 2019-12-12 03:22:26

问题


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 ?


回答1:


you can download code for python 3.x from http://www.lfd.uci.edu/~gohlke/pythonlibs/#twainmodule

and install by manually



来源:https://stackoverflow.com/questions/34803167/installing-twain-module-on-python-3-4-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!