无法在 Pycharm 中安装软件包 [英] Not able to install packages in Pycharm

查看:134
本文介绍了无法在 Pycharm 中安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 16.04 LTS 上安装了 pycharm 社区版(最新的稳定版本),我无法通过 pycharm 安装软件包,但之前可以安装它们.我可以通过 pip 安装软件包,但想解决这个问题.

I have pycharm community edition(latest stable build) installed on my Ubuntu 16.04 LTS, I am not able to install packages via pycharm, was able to install them before. I can install the packages via pip, but would like to solve this issue.

以下是问题截图

在谷歌上搜索过这个问题,但找不到任何解决办法,我有一台 Windows 机器,它没有遇到同样的问题.

Have googled for this issue, but could not find any fix, I have a windows machine and it does not face the same issue.

推荐答案

我有一个解决方案,我参考 https://youtrack.jetbrains.com/issue/PY-20081#u=1468410176856.

I have got a solution, i reffered to https://youtrack.jetbrains.com/issue/PY-20081#u=1468410176856.

在这里,他们尝试将 https://pypi.python.org/pypi 添加为存储库.

Here they have tried to add https://pypi.python.org/pypi as a repository.

要将其添加为存储库,

1.) Go to Settings
2.) Project interpreter
3.) Click the + sign on top right edge
4.) Go to manage repositories, 
5.) Press the + Sign, then add https://pypi.python.org/pypi
6.) Press Ok

现在应该加载所有包.

感谢哈米·托伦 &西蒙,我很幸运地解决了这个问题.

Thanks Hami Torun & Simon, I was able to solve it by luck.

这篇关于无法在 Pycharm 中安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆