pycharm安装第三方库失败
pycharm安装第三方库失败
<I>file选择 settings
<II>选择project Interpreter
<III>选择这个 Manage Repositories
<IV>更改下载源,点+,新增
可以将原来的 下载源 删除
默认 https://pypi.python.org/simple
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣 http://pypi.douban.com/simple/
<V>选择要安装的库,和选择options
不选择options会失败
选择了
仍然报错:
Non-zero exit code (1)
pycharm The repository located at pypi.douban.com is not a trusted or secure
解决办法 :新建pip文件夹 -->新建文件 pip.ini
豆瓣:
#正确写法 [global] timeout = 6000 index-url = https://pypi.douban.com/simple ? [install] use-mirrors = true mirrors = https://pypi.douban.com/simple/ trusted-host=pypi.douban.com
阿里云
#正确写法 [global] timeout = 6000 index-url = http://mirrors.aliyun.com/pypi/simple/ ? [install] use-mirrors = true mirrors = http://mirrors.aliyun.com/pypi/simple/ trusted-host=mirrors.aliyun.com
单个cmd安装命令 pip install numpy -i http://mirrors.aliyun.com/simple/ 可能会出错 加上--trusted-host=mirrors.aliyun.com pip install numpy -i http://mirrors.aliyun.com/simple/ --trusted-host=mirrors.aliyun.com
相关推荐
NANGEBOKE 2020-11-23
wuguangbin0 2020-11-17
shuhaojie 2020-11-17
skyplay0 2020-11-17
BigYellow 2020-11-16
shuhaojie 2020-08-16
NANGEBOKE 2020-08-15
mmwalker 2020-08-11
wuguangbin0 2020-07-18
vshacker 2020-07-05
jameslaughing 2020-07-04
jameslaughing 2020-07-04
maoyongfan 2020-06-28
hanxia 2020-06-27
无缘公子 2020-06-18
NANGEBOKE 2020-06-15