搜索得知要安装pymouse模块,顺利完成。
实际使用却出错,查找得知需要加装pyhook,上官网下载.whl文件。
接着安装,疯狂失败:pyHook-1.5.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
版本不匹配,但我已经尝试了所有的版本!!!
哦,查配适版本的代码:
win32
import pip
print(pip.pep425tags.get_supported())
amd64:
import pip._internal
print(pip._internal.pep425tags.get_supported())
均提示:
AttributeError: module 'pip._internal' has no attribute 'pep425tags'
这可能是python版本的问题(服了呢)
可能是wheel不太好使,在官网上查到
pip install wheel
pip wheel --wheel-dir=/local/wheels -r requirements.txt
第二步出错,找不到requirements
requirtments的安装方法:
pip freeze>requirements.txt
pip install -r requirements.txt
成功,但依旧出错:ERROR: Could not find a version that satisfies the requirement PyInstaller==4.0.dev0+1eadfa55f2 (from -r requirements.txt (line 14)) (from versions: 2.0, 2.1, 3.0, 3.1, 3.1.1, 3.2, 3.2.1, 3.3, 3.3.1, 3.4, 3.5, 3.6)
ERROR: No matching distribution found for PyInstaller==4.0.dev0+1eadfa55f2 (from -r requirements.txt (line 14))
暂时无解了。。。。。。。(路径问题已排除)
还可以再找一个wheel文件试一下能否安装,或者别的方法来安装。