无法在windows-python中安装Pylint?
我是python新手,我在windows上的以下目录无法在windows-python中安装Pylint?,python,pip,python-3.6,Python,Pip,Python 3.6,我是python新手,我在windows上的以下目录C:\Program Files\Python36中安装了python,当我试图在集成终端中运行以下命令时,我使用vscode作为IDE "C:\Program Files\Python36\python" -m pip install pylint 例外情况: 回溯(最近一次呼叫最后一次): 文件“c:\program files\python36\lib\site packages\pip\basecommand.py”,第215行,主目
C:\Program Files\Python36
中安装了python,当我试图在集成终端中运行以下命令时,我使用vscode
作为IDE
"C:\Program Files\Python36\python" -m pip install pylint
例外情况:
回溯(最近一次呼叫最后一次):
文件“c:\program files\python36\lib\site packages\pip\basecommand.py”,第215行,主目录
status=self.run(选项、参数)
文件“c:\program files\python36\lib\site packages\pip\commands\install.py”,第342行,正在运行
prefix=options.prefix\u路径,
文件“c:\program files\python36\lib\site packages\pip\req\req\u set.py”,第784行,在安装中
**夸尔斯
文件“c:\program files\python36\lib\site packages\pip\req\req\u install.py”,安装中第851行
self.move\u wheel\u文件(self.source\u dir,root=root,prefix=prefix)
文件“c:\program files\python36\lib\site packages\pip\req\req\u install.py”,第1064行,在move\u wheel\u文件中
孤立的,
文件“c:\program files\python36\lib\site packages\pip\wheel.py”,第345行,在move\u wheel\u文件中
clobber(源代码,lib_dir,True)
文件“c:\program files\python36\lib\site packages\pip\wheel.py”,第316行,在clobber中
确保_dir(destdir)
文件“c:\program files\python36\lib\site packages\pip\utils\uuuuu init\uuuuuuuu.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”
如何解决此问题?这是一个权限问题:
PermissionError:[WinError 5]访问被拒绝
您需要以管理员身份运行该命令。
您可以右键单击命令提示符(您可以使用例如cmd.exe
或powershell.exe
)并单击“以管理员身份运行”。然后执行“C:\Program Files\Python36\python”-m pip install pylint
它应该可以解决您的问题尝试以管理员身份运行命令提示符。为什么这样可以解决问题?执行此安装不需要管理员访问权限。这是由应用程序而不是操作系统来处理的。例如,安装Firefox扩展不需要管理员访问权限,这类似于新功能库。