- [root@xm_lt ~]# pip install --upgrade pip
- DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
- ERROR: Exception:
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 188, in main
- status = self.run(options, args)
- File "/usr/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 295, in run
- wheel_cache = WheelCache(options.cache_dir, options.format_control)
- File "/usr/lib/python2.7/site-packages/pip/_internal/cache.py", line 204, in __init__
- self._ephem_cache = EphemWheelCache(format_control)
- File "/usr/lib/python2.7/site-packages/pip/_internal/cache.py", line 180, in __init__
- self._temp_dir.create()
- File "/usr/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.py", line 75, in create
- tempfile.mkdtemp(prefix="pip-{}-".format(self.kind))
- File "/usr/lib64/python2.7/tempfile.py", line 321, in mkdtemp
- dir = gettempdir()
- File "/usr/lib64/python2.7/tempfile.py", line 265, in gettempdir
- tempdir = _get_default_tempdir()
- File "/usr/lib64/python2.7/tempfile.py", line 212, in _get_default_tempdir
- ("No usable temporary directory found in %s" % dirlist))
- IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/root']
- WARNING: You are using pip version 19.2.1, however version 20.3.4 is available.
- You should consider upgrading via the 'pip install --upgrade pip' command.
复制代码 |