python3.5安装PyUserInput报错,前提我的机器已经安装了pyhook和win32,但是使用

pip install PyUserInput

安装时,还是报错以下信息:

C:\xview_autotest\python-3.5.0-embed-amd64\Scripts>pip install PyUserInput
Looking in indexes: https://pypi.douban.com/simple
Collecting PyUserInputUsing cached https://pypi.doubanio.com/packages/d0/09/17fe0b16c7eeb52d6c14e904
596ddde82503aeee268330120b595bf22d7b/PyUserInput-0.1.11.tar.gz (28 kB)ERROR: Command errored out with exit status 1:command: 'c:\xview_autotest\python-3.5.0-embed-amd64\python.exe' -c 'importsys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Loc
al\\Temp\\pip-install-4pbc5mdh\\PyUserInput\\setup.py'"'"'; __file__='"'"'C:\\Us
ers\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-4pbc5mdh\\PyUserInput\\setup.py
'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace(
'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"
'"'))' egg_info --egg-base 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-inf
o-w8frwc_3'cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4pbc5mdh\PyUserIn
put\Complete output (8 lines):running egg_infocreating C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-info-w8frwc_3\PyUs
erInput.egg-infowriting dependency_links to C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg
-info-w8frwc_3\PyUserInput.egg-info\dependency_links.txtwriting requirements to C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-inf
o-w8frwc_3\PyUserInput.egg-info\requires.txtwriting C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-info-w8frwc_3\PyUse
rInput.egg-info\PKG-INFOwriting top-level names to C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-
info-w8frwc_3\PyUserInput.egg-info\top_level.txtwriting manifest file 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-info
-w8frwc_3\PyUserInput.egg-info\SOURCES.txt'error: [Errno 2] No such file or directory: 'c:\\xview_autotest\\python-3.5.
0-embed-amd64\\python35.zip\\lib2to3\\Grammar.txt'----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.

查了很久查不到怎么解决,网上的大多数PyUserInput报错都是让先安装pyhook,后来看到这个报错信息:

No such file or directory: 'c:\\xview_autotest\\python-3.5.
0-embed-amd64\\python35.zip\\lib2to3\\Grammar.txt'

去我的安装目录下查看了,这些文件都是存在的,最后的解决办法属实搞笑,我目录里的python35.zip文件是个压缩包,安装程序没法在里面找文件,解决办法:

在python目录下新建一个文件夹,命名为“python35.zip”,再把原python35.zip压缩包里的文件解压后放进这个新建的文件夹,问题就解决了:

再次安装:

C:\xview_autotest\python-3.5.0-embed-amd64\Scripts>pip install PyUserInput
Looking in indexes: https://pypi.douban.com/simple
Collecting PyUserInputUsing cached https://pypi.doubanio.com/packages/d0/09/17fe0b16c7eeb52d6c14e904
596ddde82503aeee268330120b595bf22d7b/PyUserInput-0.1.11.tar.gz (28 kB)
Requirement already satisfied: pyHook in c:\xview_autotest\python-3.5.0-embed-am
d64\lib\site-packages (from PyUserInput) (1.5.1)
Requirement already satisfied: pywin32 in c:\xview_autotest\python-3.5.0-embed-a
md64\lib\site-packages (from PyUserInput) (225)
Building wheels for collected packages: PyUserInputBuilding wheel for PyUserInput (setup.py) ... doneCreated wheel for PyUserInput: filename=PyUserInput-0.1.11-py3-none-any.whl si
ze=37185 sha256=c132bb828f382a0879567d0f6d9924b9b16ca442cfd5205b31258c7514fe6ce7Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\90\
d8\54\cc8ff65552cf02df496cba18e00797947e25ef7ee4e0f9aa1f
Successfully built PyUserInput
Installing collected packages: PyUserInput
Successfully installed PyUserInput-0.1.11

安装PyUserInput报错解决相关推荐

  1. mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/webpack

    mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/webpack 参 ...

  2. Jenkins安装插件报错解决方法

    Jenkins安装插件报错解决方法 1.报错场景 2.场景分析 3.问题解决(不一定能全解决,看运气) 1.报错场景 按正常方式安装完Jenkins后安装插件会报错如下: // An highligh ...

  3. npm 安装依赖报错解决方法总结

    npm 安装依赖报错解决方法总结 参考文章: (1)npm 安装依赖报错解决方法总结 (2)https://www.cnblogs.com/ysxq/p/11658571.html (3)https: ...

  4. 深度学习部署:Windows安装pycocotools报错解决方法

    深度学习部署:Windows安装pycocotools报错解决方法 1.pycocotools库的简介 2.pycocotools安装的坑 3.解决办法 更多Ai资讯:公主号AiCharm 本系列是作 ...

  5. pycharm安装pandas报错解决办法

    pycharm安装pandas报错解决办法 当使用pycharm自动安装pandas时,提示安装失败并要求在命令提示符界面进行安装.在使用命令提示符安装成功之后,发现pycharm仍然无法安装pand ...

  6. 安装onnxruntime报错解决

    安装onnxruntime报错解决 对于onnxruntime出现以下错误 ERROR: Could not find a version that satisfies the requirement ...

  7. 解决虚拟机安装系统报错解决方法

    解决虚拟机安装系统报错解决方法 虚拟机安装系统报错提示: 错误原因:当你打开虚拟机安装系统时,它需要调用CPU虚拟化功能,因为他要把所有底层硬件虚拟给(VMwere 虚拟机),所以要开启虚拟化功能.虚 ...

  8. centos8安装向日葵报错解决

    centos8安装向日葵报错解决 首先下载linux向日葵 下载地址:https://sunlogin.oray.com/download 官方安装文档:https://service.oray.co ...

  9. python︱模块加载(pip安装)以及pycharm安装与报错解决方式

    每每以为攀得众山小,可.每每又切实来到起点,大牛们,缓缓脚步来俺笔记葩分享一下吧,please~ --------------------------- 准备放下R开始学python,真是痛苦,因为找 ...

最新文章

  1. Webdriver使用Chrome模拟手机浏览器测试移动版网站
  2. Win32下 Qt与Lua交互使用(二):在Lua脚本中使用Qt类
  3. jupyter notebook切换到其他配置好的conda虚拟环境
  4. mysql索引 和 es索引_MySQL索引 VS ElasticSearch索引
  5. [转载]多维数组与Json格式的转化
  6. 【网络安全工程师面试合集】—CSRF跨站请求伪造 攻击及防御
  7. 案例-热点图(CSS3)
  8. jquerymobile多页面切换
  9. unity投影和视频画面的调整
  10. 引用 CSS+DIV/Ul+LI/dl+dt+dd/tabale+css 样式
  11. AI语音克隆软件安装和使用教程
  12. Python处理txt文件
  13. oracle10非正常删除卸载干净,Oracle 10g卸载干净
  14. VM虚拟机装Windows XP系统
  15. 乖乖地听我们三班的指挥
  16. linux中的lsof命令简介
  17. Trying to resize storage that is not resizeable 解决
  18. 陌上花开,可缓缓归矣
  19. 我的大学计算机课 作文,我的大学第一课
  20. Java实现AES工具类(包含CBC和ECB)

热门文章

  1. 面向AI应用,美光准备好了!
  2. 【Unity小游戏】 横版2D射击小游戏 效果展示+完整项目源码【超级简单,自己也可以做游戏玩了】
  3. 从SpriteKit看我的游戏人生
  4. Android开发的参考书籍和参考网站
  5. 客户端伪造代理服务器ip进行sql注入
  6. DSA-数据签名算法(理论)
  7. 上海2021年高考成绩排位查询,2021年上海高考分数一分一段位次表,上海高考个人成绩排名查询方法...
  8. 怎么判断冠词用a还是an_不定冠词a和an有哪些用法
  9. Marvell 交换芯片DSA(分布式交换架构)功能介绍
  10. ZYNQ7000学习(十八)多路 PWM 原理分析以及实现试验