pycharm安装第三方库速度慢解决方法

您所在的位置:网站首页 pycharm如何下载pygame库 pycharm安装第三方库速度慢解决方法

pycharm安装第三方库速度慢解决方法

#pycharm安装第三方库速度慢解决方法| 来源: 网络整理| 查看: 265

文章目录 1.添加国内镜像2.添加pip.ini

1.添加国内镜像

在这里插入图片描述 打开settings->Python Interpreter 在这里插入图片描述 点击+,选择Manage Respositories 在这里插入图片描述 点击+,添加国内镜像 在这里插入图片描述 常用国内镜像

https://pypi.tuna.tsinghua.edu.cn/simple/ http://mirrors.aliyun.com/pypi/simple/ https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/ http://pypi.doubanio.com/simple/ 2.添加pip.ini

找到Pycharm安装目录,我的是D:\PyCharm 2020.3.5\plugins\python\helpers,新建一个pip.ini文件(新建文本文档改后缀就行,找不到helpers可以在安装目录搜索一下),文件内容为

[global] timeout = 6000 index-url = https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = https://pypi.tuna.tsinghua.edu.cn

亲测有效



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3