博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pip win10 升级问题
阅读量:4028 次
发布时间:2019-05-24

本文共 2482 字,大约阅读时间需要 8 分钟。

python -m pip install --upgrade pip

问题:

Collecting pip
  Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
  Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\req\req_set.py", line 742, in install
    **kwargs
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\req\req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\req\req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\wheel.py", line 463, in move_wheel_files
    generated.extend(maker.make(spec))
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 372, in make
    self._make_script(entry, filenames, options=options)
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 276, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 212, in _write_script
    launcher = self._get_launcher('t')
  File "D:\python3.5.2\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 351, in _get_launcher
    result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

You are using pip version 8.1.2, however version 9.0.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.
解决方法:

python -m pip install -U --force-reinstall pip

Collecting pip

  Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-9.0.1

参考https://github.com/pypa/pip/issues/2669

转载地址:http://dylbi.baihongyu.com/

你可能感兴趣的文章
优化IDEA启动速度,快了好多。后面有什么优化点,会继续往里面添加
查看>>
JMeter 保持sessionId
查看>>
IDEA Properties中文unicode转码问题
查看>>
Idea下安装Lombok插件
查看>>
zookeeper
查看>>
Idea导入的工程看不到src等代码
查看>>
技术栈
查看>>
Jenkins中shell-script执行报错sh: line 2: npm: command not found
查看>>
8.X版本的node打包时,gulp命令报错 require.extensions.hasownproperty
查看>>
Jenkins 启动命令
查看>>
Maven项目版本继承 – 我必须指定父版本?
查看>>
Maven跳过单元测试的两种方式
查看>>
通过C++反射实现C++与任意脚本(lua、js等)的交互(二)
查看>>
利用清华镜像站解决pip超时问题
查看>>
[leetcode BY python]1两数之和
查看>>
微信小程序开发全线记录
查看>>
Centos import torchvision 出现 No module named ‘_lzma‘
查看>>
网页设计里的浮动 属性
查看>>
Maximum Subsequence Sum
查看>>
PTA:一元多项式的加乘运算
查看>>