python输入install报错_win系统通过pip安装requests,输入pip install requests后报错

论坛 期权论坛 脚本     
已经匿名di用户   2022-4-13 16:44   2392   0

C:\Program Files\Python36\Scripts>pip install requests

Collecting requests

Using cached requests-2.18.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 chardet<3.1.0,>=3.0.2 (from requests)

Using cached chardet-3.0.4-py2.py3-none-any.whl

Collecting certifi>=2017.4.17 (from requests)

Using cached certifi-2018.1.18-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: urllib3, chardet, certifi, idna, requests

Exception:

Traceback (most recent call last):

File "c:\program files\python36\lib\site-packages\pip\basecommand.py", line 215, in main

status = self.run(options, args)

File "c:\program files\python36\lib\site-packages\pip\commands\install.py", line 342, in run

prefix=options.prefix_path,

File "c:\program files\python36\lib\site-packages\pip\req\req_set.py", line 784, in install

**kwargs

File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", line 851, in install

self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files

isolated=self.isolated,

File "c:\program files\python36\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files

clobber(source, lib_dir, True)

File "c:\program files\python36\lib\site-packages\pip\wheel.py", line 316, in clobber

ensure_dir(destdir)

File "c:\program files\python36\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir

os.makedirs(path)

File "c:\program files\python36\lib\os.py", line 220, in makedirs

mkdir(name, mode)

PermissionError: [WinError 5] 拒绝访问。: 'c:\\program files\\python36\\Lib\\site-packages\\urllib3'

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

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

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP