problem installing modules with pip

Adrian4
Head in the Cloud

problem installing modules with pip

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?

4 Replies 4
RaphaelL
Kind of a big deal
Kind of a big deal

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
Adrian4
Head in the Cloud

we definitely don't have a proxy, I confirmed this with the network manager.

alemabrahao
Kind of a big deal
Kind of a big deal

It's probably some policy company applied on the laptop, I think It should better to confirm with them.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
BasantM
New here

Hello, Here are few solutions you can try:

 

  1. If you're behind a proxy, configure your proxy settings for pip.
  2. Try upgrading pip itself using python -m pip install --upgrade pip and then attempt the package installations again.
  3. If the issue persists, consider installing the packages by specifying their direct URLs or using a different network environment.
Get notified when there are additional replies to this discussion.