2017-10-15 94 views
1

我是新来的蟒蛇,我装蟒蛇在以下目录C:\Program Files\Python36窗户,我使用vscode作为IDE当我试图在integrated terminal无法在Windows安装Pylint - python?

"C:\Program Files\Python36\python" -m pip install pylint 

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] Access is denied: 'c:\program files\python36\Lib\site-packages\colorama'

运行以下命令我该如何解决问题?

+0

尝试以管理员身份运行命令提示符。 – arsho

回答

2

这是一个权限问题:

PermissionError: [WinError 5] Access is denied

你需要运行命令以管理员身份。 您可以右键单击命令提示符(例如,您可以使用cmd.exepowershell.exe),然后单击“以管理员身份运行”。然后执行"C:\Program Files\Python36\python" -m pip install pylint

它应该解决您的问题