Open gregparkes opened 1 year ago
Hi, I've met the same problem. Can I know how you solved it?
Maybe the Windows antivirus is blocking the connection?
Hi, I've met the same problem. Can I know how you solved it?
I was installing a conda environment in Windows wsl. Network connection was fine but pip install <package>
failed with NewConnectionError Failed to establish a new connection: [Errno -2]. Solved by restarting wsl: wsl --shutdown
@f-zl Thanks, this resolved the issue for me as well - Windows 11, using WSL1 Ubuntu 22.04 installing Python 3.12 in conda. Pinging websites was fine, my other conda environment with Python 3.11 was also fine. Restarting WSL with wsl --shutdown
immediately fixed it for my Python 3.12 environment
Problem description
OS version
Windows 11
Python version
3.11
pip version
23.2.1
Problem description
I've installed a fresh version of Anaconda (v23.7.4) and attempted to install some packages using pip and a standard requirements.txt file (numpy first).
Basically, when I run anything to do with pip install, the request times out and does the 5 retries. My suspicion is an SSL certification problem but I'm not sure.
I note that conda installations do work (e.g
conda install ...
) but there are certain use cases and packages which only pip supply.Running the following command in Anaconda prompt (within a conda environment):
Gives:
I am able to ping the website
https://pypi.org/simple
in Powershell and access through the browser:And when I run
pip config debug
I get:Finally, I attempted to access the packages programmatically using
requests
:which yields:
Any help would be greatly appreciated - apologies if this is blindingly obvious.