Python Pycharm - 安装包

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15054598/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 13:12:24  来源:igfitidea点击:

Pycharm - Install packages

pythonpackagespycharm

提问by philippe87

So I created my project with a virtual environment and installed pip + distribute. Everything is fine so far, But when I click on the install button to install new packages it displays a beautiful : "Nothing to show".

所以我用虚拟环境创建了我的项目并安装了 pip+distribute。到目前为止一切都很好,但是当我单击安装按钮安装新软件包时,它显示了一个漂亮的:“没有什么可显示的”。

Here is an image of it :

这是它的图像:

enter image description here

在此处输入图片说明

I have the default repository

我有默认存储库

So what did I do wrong? Is this not the right way to install python modules like PIL or third party django apps like django south ?

那么我做错了什么?这不是安装像 PIL 这样的 python 模块或像 django south 这样的第三方 django 应用程序的正确方法吗?

Edit : I forgot to mention , it's the trial version... Can this be because of it ?

编辑:我忘了说,它是试用版......可能是因为它吗?

采纳答案by yole

The problem is caused by recent server-side changes in PyPI, and will be addressed in the PyCharm 2.7.1 update. Please see http://youtrack.jetbrains.com/issue/PY-8962to track the status of the issue.

该问题是由 PyPI 中最近的服务器端更改引起的,将在 PyCharm 2.7.1 更新中解决。请参阅http://youtrack.jetbrains.com/issue/PY-8962以跟踪问题的状态。

回答by rleelr

If you are behind a proxy (e.g. in a corporate environment), then you may need to configure your proxy settings for PyCharm to show the packages.

如果您使用代理(例如在公司环境中),那么您可能需要为 PyCharm 配置代理设置以显示包。

These are in Pycharm under:

这些在 Pycharm 下:

File -> Settings -> Appearance & Behaviour -> System Settings -> HTTP Proxy

文件 -> 设置 -> 外观和行为 -> 系统设置 -> HTTP 代理

Enter your proxy settings there, e.g. a host name and port number.

在那里输入您的代理设置,例如主机名和端口号。

If you don't know your proxy settings then this question may be useful: How to see the proxy settings on windows?

如果您不知道您的代理设置,那么这个问题可能很有用:如何在 Windows 上查看代理设置?

回答by vahidzolf

I faced such problem man y times and every time I found that the problem corresponds to my internet connection. check your internet connection with tools like wget or curl in linux and browsers in windows.

我多次遇到这样的问题,每次我发现问题与我的互联网连接相对应。使用Linux中的wget或curl等工具以及Windows中的浏览器检查您的互联网连接。