Pycharm使用国内源下载package

PyCharm在下载package时太慢或时常下载失败报Available packages nothing to show。
解决方案

  1. 打开settrings
    打开settings
  2. 找到项目对应的Project,点击右侧的+号
    找到对应的project
  3. 点击Manage Repositories
    Manage Repositories
  4. 点击链接按钮,编辑
    国内源:
  • 清华:https://pypi.tuna.tsinghua.edu.cn/simple
  • 阿里云:http://mirrors.aliyun.com/pypi/simple/
  • 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
  • 华中理工大学:http://pypi.hustunique.com/
  • 山东理工大学:http://pypi.sdutlinux.org/
  • 豆瓣:http://pypi.douban.com/simple/
    选择其中一个复制后,点击确定。

操作1:
编辑链接
操作2:
编辑链接
5. 搜索自己要下载的包,开始下载,如果不成功换一个国内源链接。
下载安装包


以上内容如有争议、指正,留言给我~

发布了67 篇原创文章 · 获赞 22 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_42119415/article/details/103103779
今日推荐