python
主页 > 脚本 > python >

Python pip更换清华源镜像

2024-09-22 | 佚名 | 点击:

命令安装

1

pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple

以wordcloud库为例,在终端输入后回车:

1

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,还能在右边选择版本:
mg alt="在这里插入图片描述" src="//img.jbzj.com/file_images/article/202409/2024092215344425.png" />安装成功:

在这里插入图片描述

原文链接:
相关文章
最新更新