Python pip更换清华源镜像
·
- 在安装Python库时使用清华源镜像是为了改善库的下载速度和稳定性
- 地址:https://pypi.tuna.tsinghua.edu.cn/simple
命令安装
-
安装命令:
pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple -
以wordcloud库为例,在终端输入后回车:
pip install wordcloud -i https://pypi.tuna.tsinghua.edu.cn/simple

配置安装
- 依次点击PyCharm的File,Settings:

- 再依次点击Project,Python Interpreter,+:

- 点击Manage Repositories:

- 点击+,输入清华源镜像地址:https://pypi.tuna.tsinghua.edu.cn/simple,点击OK:

- 再点击OK:

- 以wordcloud为例,输入想要安装的库名,点击Install Package,还能在右边选择版本:

- 安装成功:

其它镜像
-
豆瓣:http://pypi.douban.com/simple/
-
阿里云:http://mirrors.aliyun.com/pypi/simple/
-
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/
新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。
更多推荐



所有评论(0)