Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install packages in Pycharm

Tags:

python

pycharm

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.

Below is the Screenshot of the problem

enter image description here

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

like image 491
penta Avatar asked Oct 15 '16 14:10

penta


People also ask

Why packages are not installing in PyCharm?

The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal. If you get an identical error message, then the problem is not in the IDE and you should review the rationales and typical cases, or search for a solution on the Internet.

How do I manually install PyCharm packages?

Go to File > Settings > Project Interpreter > click the + button and search the name of the package you want to install.


2 Answers

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

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

To add it 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

Now all the packages should load.

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

like image 59
penta Avatar answered Oct 17 '22 06:10

penta


I had the same issue. It happened suddenly, day ago I was able to perform pip or install packages but on the next day error appeared. However this helped (I used version PyCharm Community Edition 2018):

Go to Settings -> Project Interpreter -> click green "+" icon (on right) -> Manage Repositories (on bottom) -> delete https://pypi.python.org/simple -> add https://pypi.python.org/pypi then click Ok. Repo will be back again as /simple, but don't worry, error should disappear and you should be able to install packages again.

like image 5
Belloz Avatar answered Oct 17 '22 07:10

Belloz