I tried to run this command and got the following error:
$ pip install --upgrade pip
Collecting pip Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB) 100% |████████████████████████████████| 1.3MB 1.1MB/s
Installing collected packages: pip
Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
Successfully uninstalled pip-9.0.1
Rolling back uninstall of pip
Exception: Traceback (most recent call last):
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/wheel.py", line 323, in clobber
File "/opt/virtualenvs/appname/lib/python3.5/shutil.py", line 115, in copyfile with open(dst, 'wb') as fdst:
OSError: [Errno 28] No space left on device: '/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/_internal/cache.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/req/req_set.py", line 790, in install
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/req/req_install.py", line 759, in rollback_uninstall
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 135, in rollback
File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/utils/init.py", line 265, in renames
File "/opt/virtualenvs/appname/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode)
OSError: [Errno 28] No space left on device: '/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/_vendor/cachecontrol/caches/pycache'
Now when i run:
$ pip -h
Traceback (most recent call last): File "/opt/virtualenvs/appname/bin/pip", line 7, in from pip import main File "/opt/virtualenvs/appname/lib/python3.5/site-packages/pip/init.py", line 21, in from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named 'pip._vendor.requests'
Will anyone help me figure this out? Thanks in advance.
pip freeze
which creates arequirements.txt
file. Depending on exactly how things are set up this might or might not be sufficient to recreate everything, but if you don't have documentation on how to set up a staging server from scratch, now is a great time to do it. – Dietrich Epp Aug 6 '18 at 21:07