penta
penta

Reputation: 2596

Not able to install packages in 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.

Upvotes: 34

Views: 105868

Answers (5)

ezra buchla
ezra buchla

Reputation: 364

The accepted answer didn't work for me. I had to update my pip version from the PyCharm terminal:

pip install --upgrade pip

Upvotes: 1

Marcelo Assis
Marcelo Assis

Reputation: 5204

I just had a similar problem. My project was created by PyCharm, with venv. The package I was installing via manager (Ctrl+Alt+S), was showing in the list, but it wasn't being recognized or imported.

I believe the error happened because I tried to install it before, using pip install into IDE's own terminal. Also pip version in the manager was a beta version, then I changed it to a stable version.

Had to start a new project in a new folder.

Upvotes: 0

saleh sereshki
saleh sereshki

Reputation: 2532

For me, it was because of low space in my pc. After I free up space the problem solved. Pycharm did not say anything about this problem. It just shows that "the package installed successfully", but actually package was not installed.

Upvotes: 0

Belloz
Belloz

Reputation: 423

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.

Upvotes: 5

penta
penta

Reputation: 2596

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.

Upvotes: 21

Related Questions