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

17 comments
Comment actions Permalink
 
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
Comment actions Permalink

I have the same problem with EAP.

The available packages is empty

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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. 

1
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

latest version here and this is still an issue

1
Comment actions Permalink

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

0
Comment actions Permalink

@Nagydaniel1337

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

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

now it works with Krecik704'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

Please sign in to leave a comment.