How to solve "venv/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status (Pillow pycuda)

https://github.com/pypa/pip/issues/4823

 

 

@pradyunsg Thanks. My virtual env didn't have site packages visible, so --user did not work. But I did the following:

$ pip install --ignore-installed --no-cache-dir pip
$ pip install --ignore-installed --no-cache-dir requests

 

Update pip version

pip install --ignore-installed --no-cache-dir pip did the trick, i.e. upgrade pip from version 9 to version 18

 or

$ python3 -m pip install --upgrade pip    (refer to https://github.com/python-pillow/Pillow/issues/4530)
Collecting pip
Downloading https://files.pythonhosted.org/packages/fe/ef/60d7ba03b5c442309ef42e7d69959f73aacccd0d86008362a681c4698e83/pip-21.0.1-py3-none-any.whl (1.5MB)
100% |████████████████████████████████| 1.5MB 331kB/s
Installing collected packages: pip
Successfully installed pip-21.0.1

 

other reference:

https://github.com/NVIDIA/DALI/issues/1078

https://stackoverflow.com/questions/48109956/unable-to-install-any-package-through-pip/48110633#

https://stackoverflow.com/questions/57602643/getting-error-while-installing-any-package-in-python-httperror-404-client-err

 

 

 

$ pip3 install Pillow
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting Pillow
Downloading Pillow-8.1.0-cp36-cp36m-manylinux2014_aarch64.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 6.4 MB/s
Installing collected packages: Pillow
Successfully installed Pillow-8.1.0

 

 

$ pip3 install --global-option=build_ext --global-option="-I/usr/local/cuda/include" --global-option="-L/usr/local/cuda/lib64" pycuda

(https://forums.developer.nvidia.com/t/pycuda-installation-failure-on-jetson-nano/77152/22)

Installing collected packages: pycuda
Running setup.py install for pycuda ... done
Successfully installed pycuda-2020.1

 

 

 

 

111 sudo apt-get install python3-setuptools
112 sudo python3 -m easy_install install pip
113 python3 -m pip --version
114 pip --version
115 pip
116 which pip
117 /usr/local/bin/pip --version
119 sudo cp /usr/local/bin/pip /usr/bin/pip

posted on 2021-02-02 21:08  cdekelon  阅读(96)  评论(0)    收藏  举报

导航