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的安装目前用户拥有所有权限

原文地址:https://www.cnblogs.com/Yanqiqi/p/10318327.html