Not able to install packages in Pycharm
Solution 1
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.
Solution 2
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.
penta
I just like to help other people in programming as I believe you grow learn new things by sharing knowledge. Thankyou
Updated on December 04, 2020Comments
-
penta over 3 years
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
Have googled for this issue, but could not find any fix, I have a windows machine and it does not face the same issue.
-
kRazzy R about 6 yearsI tried this but with no luck. it turns out pip was the culprit. pip had somehow updated itself from 9.0.1 to 10. , and this pip 10 was wreaking havoc
-
Belloz about 6 years@kRazzyR DO NOT USE pip 10 in PyCharm! It's still bugged, get back pip to 9, in Settings -> Project Interpreter -> Repository, choose pip and then choose older version. Source: blog.jetbrains.com/pycharm/2018/04/…
-
Logic1 about 6 yearsList is still empty for me - (pycharm 5.0.5)
-
penta about 6 years@Logic1 Can you tell me what version does it show in Help -> About (in pycharm)
-
Alex almost 6 yearswhen I add pypi, it automatically removes it and replaces it with simple. no success!