zoukankan      html  css  js  c++  java
  • pip-9.0.1更新到pip-10.0.1遇到的问题

      使用 pip 安装第三方库时,报错:

    You are using pip version 9.0.3, however version 10.0.1 is available.

    You should consider upgrading via the 'pip install --upgrade pip' command.

      使用:pip install --upgrade pip 命令时,出现异常:

    Installing collected packages: pip

      Found existing installation: pip 9.0.3

        Uninstalling pip-9.0.3:

    Exception:

    Traceback (most recent call last):

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 544, in move

        os.rename(src, real_dst)

    PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip-9.0.3.dist-info/DESCRIPTION.rst' -> '/var/folders/jw/d3_slty13w37lv03q_lly96m0000gn/T/pip-q73ghl27-uninstall/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip-9.0.3.dist-info/DESCRIPTION.rst'

     

    During handling of the above exception, another exception occurred:

     

    Traceback (most recent call last):

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main

        status = self.run(options, args)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run

        prefix=options.prefix_path,

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/req/req_set.py", line 778, in install

        requirement.uninstall(auto_confirm=True)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/req/req_install.py", line 754, in uninstall

        paths_to_remove.remove(auto_confirm)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/req/req_uninstall.py", line 115, in remove

        renames(path, new_path)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/utils/__init__.py", line 267, in renames

        shutil.move(old, new)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 559, in move

        os.unlink(src)

    PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip-9.0.3.dist-info/DESCRIPTION.rst'

    You are using pip version 9.0.3, however version 10.0.1 is available.

    You should consider upgrading via the 'pip install --upgrade pip' command.

      解决方案:

      使用:

    sudo  pip install --upgrade pip

  • 相关阅读:
    hdu 4609 (FFT求解三角形)
    hdu 1402 FFT(模板)
    是因为Session只能让服务器在一次连续的会话中记住你,而Cookie是记住浏览器一段时间
    应该是实例化对象的没有对属性赋值时,自动赋值为null,但不是空指针对象引用
    一共有三种方式获取表单中的信息.第三种,容易忽视..用动作获取和用内置对象获取
    是不是总会有好享受的时候
    获取表单提交的信息在jsp页面只能用request对象。活着用超链接的URL传递参数,但是同样用request对象来获取
    不能解决,复选框在request对象获取的信息后显示在用户信息里面为中文的选项名
    jsp中向浏览器页面输出的方式总结
    mysql
  • 原文地址:https://www.cnblogs.com/ZachRobin/p/9100501.html
Copyright © 2011-2022 走看看