12-09-2022 05:26 AM
Hello,
I am trying to setup python for the first time and Im having some trouble. I have installed the latest version of python and pip and am trying to update some packages as per a meraki guide.
https://developer.cisco.com/meraki/build/automation-with-python-api-lab/
pip install --upgrade requests
pip install --upgrade meraki
however I am getting the following error...
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/requests/
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests
WARNING: There was an error checking the latest version of pip
I am using a company laptop, and do not get this error on my personal laptop.
On the problem laptop I have turned of cisco AnyConnect (we only use it for the custom DNS thing)
I have also switched to a wireless network that doe not go through a firewall, and also checked the live firewall logs for my IP to confirm nothing is being blocked.
I also disabled IPv6 and changed my DNS server to 8.8.8.8
I still get the same message.
In a browser however, I can get to https://pypi.org without a problem. It responds to ping in cmd too.
I can also browse to https://pypi.org/simple/ and see all the packages.
When I browse to https://pypi.org/simple//requests I see a huge list of versions in .tz format, as well as some .gz, .whl and .egg formats.
I have also tried from my home network (completely off company) and get the same problem. Again, my personal laptop had no problem at all so it has to be something specific to my work laptop but all the security software is totally disabled at the service level 😞
oh, and I also tried a different repository which did not work
pip install -i https://pypi.anaconda.org/pypi requests
any ideas?
12-09-2022 05:35 AM
Is your company behind a proxy ? You might have to specify your proxy in your pip command.
pip install --proxy http://user:password@proxyserver:port ModuleName
12-09-2022 05:52 AM
we definitely don't have a proxy, I confirmed this with the network manager.
12-09-2022 08:18 AM
It's probably some policy company applied on the laptop, I think It should better to confirm with them.
01-02-2024 04:13 AM
Hello, Here are few solutions you can try:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide