• pip 安装 request 失败


    C:Program FilesPython35Scripts>pip install requests
    Collecting requests
      Using cached requests-2.18.4-py2.py3-none-any.whl
    Collecting certifi>=2017.4.17 (from requests)
      Using cached certifi-2017.11.5-py2.py3-none-any.whl
    Collecting chardet<3.1.0,>=3.0.2 (from requests)
      Using cached chardet-3.0.4-py2.py3-none-any.whl
    Collecting urllib3<1.23,>=1.21.1 (from requests)
      Using cached urllib3-1.22-py2.py3-none-any.whl
    Collecting idna<2.7,>=2.5 (from requests)
      Using cached idna-2.6-py2.py3-none-any.whl
    Installing collected packages: certifi, chardet, urllib3, idna, requests
    Exception:
    Traceback (most recent call last):
      File "c:program filespython35libsite-packagespipasecommand.py", line 215, in main
        status = self.run(options, args)
      File "c:program filespython35libsite-packagespipcommandsinstall.py", line 342, in run
        prefix=options.prefix_path,
      File "c:program filespython35libsite-packagespip
    eq
    eq_set.py", line 784, in install
        **kwargs
      File "c:program filespython35libsite-packagespip
    eq
    eq_install.py", line 851, in install
        self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
      File "c:program filespython35libsite-packagespip
    eq
    eq_install.py", line 1064, in move_wheel_files
        isolated=self.isolated,
      File "c:program filespython35libsite-packagespipwheel.py", line 345, in move_wheel_files
        clobber(source, lib_dir, True)
      File "c:program filespython35libsite-packagespipwheel.py", line 316, in clobber
        ensure_dir(destdir)
      File "c:program filespython35libsite-packagespiputils\__init__.py", line 83, in ensure_dir
        os.makedirs(path)
      File "c:program filespython35libos.py", line 241, in makedirs
        mkdir(name, mode)
    
    --------------------- 
    作者:舒迟貌 
    来源:CSDN 
    原文:https://blog.csdn.net/scm_yyy/article/details/79056429 
    版权声明:本文为博主原创文章,转载请附上博文链接!

    解决办法:

    设置python的安装目前用户拥有所有权限

  • 相关阅读:
    Spring配置文件中的那些标签意味着什么(持续更新)
    转 spring配置文件
    Web.xml配置详解之context-param
    web.xml 中的listener、 filter、servlet 加载顺序及其详解
    spring mvc 中web.xml配置信息解释
    转 一个web项目web.xml的配置中<context-param>配置作用
    在web.xml中通过contextConfigLocation配置spring
    (转)web.xml中的contextConfigLocation在spring中的作用
    Android菜鸟的成长笔记(20)——IntentService
    PhotoSwipe源码解读系列(二)
  • 原文地址:https://www.cnblogs.com/Yanqiqi/p/10318327.html
Copyright © 2020-2023  润新知