Forums

Getting 403 Forbidden when running *any* pip install command

Edit: Solved. I left the console and came back, and now pip install is working. Is there a way to delete a topic?


I'm following this tutorial to deploy a Django app. When I run pip install -r requirements.txt I get the 403 error. I also get it when I run pip install django or pip install bcrypt. What can I do? Surely I can install django on the free plan?

Here's the full error:

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',))': /simple/django/

That sounds like you've broken your proxy configuration. What do you get if you run

echo $http_proxy
echo $https_proxy

Thanks Glenn. I've got it working now. Killing the console and starting a new one worked. Both of those come back with http://proxy.server:3128 now. Not sure what they would have done when it wasn't working.

I am getting the same error, even after killing the console and starting a new one.

Both

echo $http_proxy

and

echo $https_proxy

return

http://proxy.server:3128

Hi bingoapp, which is the exact pip install command are you trying to do?

Hi, I also had the same error as bingoapp yesterday (it was ordinary "pip install -r requirements.txt" from fresh virtualenv), but it works now (exactly same command).

I was running

pip install django-allauth==0.34.0

and getting a 403 forbidden error, but trying again this morning it worked. I've never had anything like that happen before, but now everything's back to normal.

That's really weird. We haven't changed anything in that area. Conceivably there was a brief outage on PyPI? I know they're making some changes there at the moment.

I got the same error when installing the openeye-toolkits package.

Command: (myenv) $ pip install -i https://pypi.anaconda.org/openeye/simple openeye-toolkits-python3-linux-x64

Error:

Looking in indexes: https://pypi.anaconda.org/OpenEye/simple

Looking in links: /usr/share/pip-wheels

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /OpenEye/simple/openeye-toolkits/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /OpenEye/simple/openeye-toolkits/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /OpenEye/simple/openeye-toolkits/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /OpenEye/simple/openeye-toolkits/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /OpenEye/simple/openeye-toolkits/

ERROR: Could not find a version that satisfies the requirement OpenEye-toolkits (from versions: none)

ERROR: No matching distribution found for OpenEye-toolkits

Could you help me to solve this problem? Thank you in advance!!

Ok. I have added pypi.anaconda.org to the whitelist.

Thank you! @glenn. I could collect and download the package. But it can't be installed and get error "Disk quota exceeded"

That means your account does not have enough disk space to install the package.

It can not be installed but still downloaded that make disk 100% full. How can I delete that packages?

Looking in indexes: https://pypi.anaconda.org/OpenEye/simple

Looking in links: /usr/share/pip-wheels

Processing ./.cache/pip/wheels/43/2f/16/5f88ddebf0b2b2cd6884fc3b9467392d6888a2de5479efa5ba/OpenEye_toolkits-2019.10.2-py3-none-any.whl

Collecting OpenEye-toolkits-python3-linux-x64==2019.10.2

Downloading https://pypi.anaconda.org/openeye/simple/openeye-toolkits-python3-linux-x64/2019.10.2/OpenEye-toolkits-python3-linux-x64-2019.10.2.tar.gz (75.4 MB)

This is downloading process.

Check this to see what is using up your disk space and delete that.

Judging from what you pasted, I'm guessing there's leftover stuff in /home/nhphat0801/.cache/