通过Python来制作自动点击脚本

 搜索得知要安装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文件试一下能否安装,或者别的方法来安装。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容