安装命令:
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" />安装成功: