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

pip升级的错误

时间:2019-09-22 01:29:29      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:none   提示信息   byte   ons   eve   attr   创建   -o   com   

AttributeError: ‘NoneType’ object has no attribute ‘bytes’

在PyCharm创建的Virtualenv环境下,使用pip安装包时,老是提示需要升级pip,具体提示信息为:

You are using pip version 10.0.1, however version 19.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

而当执行完 python -m pip install --upgrade pip 后确报如下错误:

AttributeError: 'NoneType' object has no attribute 'bytes'

解决方法如下:

#这个方法我试了是可以的
1、python -m pip install -U --force-reinstall pip 

2、python -m pip install -U pip

3、easy_install -U pip

pip升级的错误

标签:none   提示信息   byte   ons   eve   attr   创建   -o   com   

原文地址:https://www.cnblogs.com/venvive/p/11565386.html

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