pycharm 安装python的第三方库出错
- 错误提示:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'D:\Python\Python36\python.exe'.
- 解决:
命令行敲写
C:\Users\Li-Beta>pip install --trusted-host pypi.tuna.tsinghua.edu.cn -i https://pypi.tuna.tsinghua.edu.cn/simple xlrd
例:
pip install --trusted-host 域名 -i 库源
域名和库源网址都要写,这里使用的清华
- 常见镜像源:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
查看pip安装列表 pip list
安装pyHook :
去https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook
下载相对应版本
python -V
查看版本
python
查看63/32位
之后再下载文件的目录下打开命令行
pip install PyHook -i https://mirrors.aliyun.com/pypi/simple/