无法在Windows中安装Pylint-python? [英] Unable to Install Pylint in windows - python?

查看:295
本文介绍了无法在Windows中安装Pylint-python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python的新手,我在以下目录C:\Program Files\Python36中的Windows上安装了python,尝试在integrated terminal

I am new to python, I installed python on windows in the following directory C:\Program Files\Python36, I am using vscode as IDE when I trying to run the following command in integrated terminal

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

例外: 追溯(最近一次通话): 主文件中的第215行"c:\ program files \ python36 \ lib \ site-packages \ pip \ basecommand.py" 状态= self.run(选项,参数) 运行中的文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ commands \ install.py",第342行 prefix = options.prefix_path, 在安装中,文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ req \ req_set.py",第784行 **夸克 安装中的文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ req \ req_install.py",行851 self.move_wheel_files(self.source_dir,root = root,prefix = prefix) 文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ req \ req_install.py",行1064,在move_wheel_files中 孤立的= self.isolated, 在move_wheel_files中的第345行,文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ wheel.py" clobber(来源,lib_dir,True) 文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ wheel.py",行316,在内容管理器中 sure_dir(destdir) 确保文件"c:\ program files \ python36 \ lib \ site-packages \ pip \ utils__init __.py",第83行 os.makedirs(路径) 在makedirs中的文件"c:\ program files \ python36 \ lib \ os.py",第220行 mkdir(名称,模式) PermissionError:[WinError 5]访问被拒绝:'c:\ program files \ python36 \ Lib \ site-packages \ colorama'

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'

我该如何解决此问题?

推荐答案

这是权限问题:

PermissionError:[WinError 5]访问被拒绝

PermissionError: [WinError 5] Access is denied

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

You need to run the command as administrator. You can Right Click on the command prompt (You can use for example cmd.exe or powershell.exe) and click "Run as administrator". Then execute "C:\Program Files\Python36\python" -m pip install pylint

它应该可以解决您的问题

It should solve your issue

这篇关于无法在Windows中安装Pylint-python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆