PyCharm interpreter can't find new packages

Hi,

So this has confused me because it's worked perfectly fine in the past. Adding packages to my project interpreter no longer seems to find any packages. Even simple things like pip or numpy don't show up when I search for them.

Just so I know, are there usually more repositories than 'https://pypi.python.org/pypi' under 'Manage Repositories'?

I could've sworn there was a longer list of them but now that's the only repository I have listed.

Thanks!

-Mark

1
33 comments
Avatar
Permanently deleted user
 
Based on previous bug track
 
To reproduce the problem one may need to delete the cached packages file: CONFIG\options\packages.xml. PyCharm parses the HTML page at https://pypi.python.org/pypi?%3Aaction=index to get the list of packages. Either format of the page has changed recently or there is some other problem with loading and parsing this list.
 
However, PYPI no longer maintain the index, so i am not sure if this is going to work again
PYPI did provide an alternative path https://pypi.python.org/simple/
I tried to put that into my repo link but it didnt' work ~
 
 
1
Avatar
Permanently deleted user

I have the same problem with EAP.

The available packages is empty

0
Avatar
Permanently deleted user

Yeah, simple didn't work for me either.

Seems like error occurs for some but not for others based on the bug track.

At any rate I can still add packages via command line. I'd love to know why this worked last week but now decided to stop functioning, though.

 

Thanks!

0

The issue https://youtrack.jetbrains.com/issue/PY-20081 should be fixed in PyCharm 2016.2. Please update your PyCharm version and check it.

0
Avatar
Permanently deleted user

I just tried adding http://pypi.python.org/simple/ to the repository list in pycharm 2016.2 but it isn't pulling in any of the entries from that page.

0
Avatar
Permanently deleted user

I have PyCharm 2016.2.3 installed on a Windows 7 machine and I keep getting this error message:

"Error loading package list:unknown protocol: d"

This is happening for my virtualenvs for Python 2.7 and Python 3.4.  My package repositories has this entry:

https://pypi.python.org/simple

Is this a known issue?

0
Avatar
Permanently deleted user

Never mind, I found that I had a bad entry in my repository list preceding the valid entry of https://pypi.python.org/simple.  I deleted the bad entry and the problem is fixed.

0
Avatar
Permanently deleted user

Hi, I had the same issue, but this helped:
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. 

3
Avatar
Permanently deleted user

I have the latest version of PyCharm Community Edition but experiencing the same problem. So in order to connect to databases and to read excel files, I use VS Code. How can it be resolved?

0

Default repository is: https://pypi.python.org/simple

That is, if you're not using conda package manager, in which case the repository should just say "defaults".

Check if you have anything configured under **File | Settings | Appearance & Behavior | System Settings | HTTP Proxy** and that connection to https://pypi.python.org/simple can be established.

0

latest version here and this is still an issue

1

pyhton -m pip install [package] works, but pycharm can't see the package

0

@Nagydaniel1337

Do you use the latest PyCharm version?
What kind of interpreter do you use? (venv, conda env...)

0

Sergey Karpov

venv, python3.7

 

PyCharm 2019.2.5 (Community Edition)
Build #PC-192.7142.56, built on November 19, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry:
Non-Bundled Plugins: codes.rudolph.idea.cfg, com.alayouni.ansiHighlight, com.intellij.ideolog, com.jetbrains.plugins.ini4idea, com.millennialmedia.intellibot@SeleniumLibrary Patched, net.seesharpsoft.intellij.plugins.csv

0

no change after update to:

PyCharm 2019.3.2 (Community Edition)
Build #PCA-193.6015.41, built on January 21, 2020
Runtime version: 11.0.5+10-b520.30 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry:
Non-Bundled Plugins: codes.rudolph.idea.cfg, com.alayouni.ansiHighlight, com.intellij.ideolog, com.jetbrains.plugins.ini4idea, com.millennialmedia.intellibot@SeleniumLibrary Patched, net.seesharpsoft.intellij.plugins.csv

0

What are the steps for reproducing?
You open the terminal in PyCharm and install a package, but PyCharm can't find it?
Does File | Invalidate Caches / Restart... help?

0

now it works with @...'s solution. thanks for it. I can now find the package what I uploaded with twine 1-2 days ago. even if the added pypi repo disappeared from the repo list.

0

I have this problem too and can't do anything to fix it! Krecik704's solution isn't working for me!

0

Hello megahomyak,

 

Could you tell me what exactly seems to be an issue?

Please upload your logs folder zipped from ***Help | Collect logs and Diagnostic Data***   to the FTP

https://uploads.jetbrains.com/ and please let me know the filename. 

0

Antonina Belianskaya

I can't set up common, NOT SIMPLE pypi for package finding. If I add https://pypi.python.org/pypi, row just disappears after exiting the "Manage Repositories" window using "Ok" button. Changing the existing row also have the same results.

Upload id: 2021_01_10_14kBY19rBRAQjWDe (file: idea-logs-20210110-153125.zip)

0

megahomyak

https://pypi.python.org/pypi doesn't seem to be valid anymore. Navigate to it in the browser and you'll be redirected to https://pypi.org/

While https://pypi.python.org/simple redirects to https://pypi.org/simple/ and shows index list as it should.

Am I missing something?

0

Andrey Resler, I tried your suggestions but none of them gave needed results. I only saw clickable things on site as packages without a possibility to view them. Also tried https://pypi.python.org/search/, this one isn't working correctly either.

0

>I only saw clickable things on site as packages without a possibility to view them

Yes, this is what you should see if you navigate to https://pypi.org/simple/ , and this URL should work if you add it to the repository list:

Doesn't it work for you?

0

It is, but it's not what I wanted, because that list isn't containing new packages. I googled that I can't search packages like I expected when using that thing, so my question is no longer relevant. Thx everyone

0
Avatar
Permanently deleted user

I have a similar problem. I freshly installed PyCharm on my new notebook and I do not see any packages. If I open the Manage Repositories window and type in a repository address only a small wheel is turning, but nothing happens:

Any ideas?

0

@...

Could be a network-related issue. If you can open the repo URL in browser, try disabling any firewall you may have.

Check Logs from **Help | Collect Logs and Diagnostic Data** for any errors.

0
Avatar
Permanently deleted user

I checked that, there should be no problem. Browser, curl, both worked and were able to retreive the url.

However conda did not work from the command line as well and gave an 404 with the correct address.

It seemed more related to the conda channel config. After removing some channels, at least the command line call works now. However, still no activity in the PyCharm repositories section :( Not even after restarting PyCharm. 

0

Ok, does it work for venv interpreter? If positive, that it definitely looks like conda-related issue...

0
Avatar
Permanently deleted user

Yes, it works with the other interpreter. It really seems to be a problem with the conda environment itself. I'll have to have a closer look into that.

Anyway, thanks for the help ;)

0

@..., were you able to solve the problem? I have the exact same issue as you describe !

Thanks.

0

Please sign in to leave a comment.