- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we definitely don't have a proxy, I confirmed this with the network manager.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's probably some policy company applied on the laptop, I think It should better to confirm with them.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, Here are few solutions you can try:
- If you're behind a proxy, configure your proxy settings for pip.
- Try upgrading pip itself using python -m pip install --upgrade pip and then attempt the package installations again.
- If the issue persists, consider installing the packages by specifying their direct URLs or using a different network environment.
