Can't Load Packages in PyCharm - "Error loading package list:Connection refused"

Hi - I am rather new to this so forgive me if I have missed something obvious.  I have installed Python 3.8, 3.9 and Pycharm for mac on a decktop and laptop.  The laptop installation is fine but the desktop install does not allow me to install or even see packages. I have tried to check configurations but can't see anything obvious.

 

I have checked the proxy settings - no proxy - just like the laptop. I can navigate to https://pypi.python.org/simple through a browser and using the check connection option is successful too.

Any help most welcome.

0
2 comments

Do you have any antivirus/firewall software? Try disabling them temporarily.

Also, try installing the package manually using `pip install <package_name>` from terminal.

0
Avatar
Permanently deleted user

I removed AV (disabled web and email checking) and this did not correct the issue

I tried the pip install option and this worked but I don't know where it was installed - sorry very new to this.

While this worked the libraries did not show in the PyCharm packages under the Pref>Python Interpreter, perhaps as I link to the project directory?

I then looked at the repositories under Manage Repositories and there were 3 while the laptop only had pypi.python.org/simple so, not knowing if this was right, I deleted the extras and, as if by magic, the library option were presented and can now be installed.

I can't pretend to understand why it didn't work or why it does work now (assume one of the repository links was bad and causes it to fail) but that is one very taxing issue resolved.  It took me two weeks to get here so should I give up now?

0

Please sign in to leave a comment.