升级pip报错
Posted godlove
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了升级pip报错相关的知识,希望对你有一定的参考价值。
ERROR: Exception:
Traceback (most recent call last):
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_internal\\cli\\base_command.py", line 178, in main
status = self.run(options, args)
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_internal\\commands\\install.py", line 414, in run
use_user_site=options.use_user_site,
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_internal\\req\\__init__.py", line 58, in install_given_reqs
**kwargs
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_internal\\req\\req_install.py", line 920, in install
use_user_site=use_user_site, pycompile=pycompile,
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_internal\\req\\req_install.py", line 448, in move_wheel_files
warn_script_location=warn_script_location,
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_internal\\wheel.py", line 544, in move_wheel_files
generated.extend(maker.make(spec))
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_vendor\\distlib\\scripts.py", line 405, in make
self._make_script(entry, filenames, options=options)
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_vendor\\distlib\\scripts.py", line 309, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_vendor\\distlib\\scripts.py", line 245, in _write_script
launcher = self._get_launcher(‘t‘)
File "C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages\\pip\\_vendor\\distlib\\scripts.py", line 384, in _get_launcher
result = finder(distlib_package).find(name).bytes
AttributeError: ‘NoneType‘ object has no attribute ‘bytes‘
WARNING: You are using pip version 19.1.1, however version 19.2.3 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command.
用easy_install -U pip命令就可以正常升级了
以上是关于升级pip报错的主要内容,如果未能解决你的问题,请参考以下文章
Python3.6.2安装pip install paramike模块报错
简单的centos7访问server12r2共享竟然报错报错报错~~~~~~~
安装升级pip,但是python -m pip install --upgrade pip报错