码迷,mamicode.com
首页 > 其他好文 > 详细

升级pip报错

时间:2019-09-05 18:18:04      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:find   entry   ack   launcher   tee   write   location   pts   command   

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报错

标签:find   entry   ack   launcher   tee   write   location   pts   command   

原文地址:https://www.cnblogs.com/godlove/p/11468630.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!