[英]Pylint installation error "Is a Directory"
When I try to install PyLint, either from the pop-up in Visual Studio Code that says "Linter Pylint is not installed" or via console using pip install pylon --user
, I get the following error:当我尝试安装 PyLint 时,无论是从 Visual Studio Code 中显示“未安装 Linter Pylint”的弹出窗口,还是通过控制台使用
pip install pylon --user
,我都会收到以下错误:
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/MyAccountNameHere/Library/Python/3.7/lib/python/site-packages/pip-19.0.1.dist-info/METADATA'
I tried creating a folder named "METADATA" to see if that changed anything, but then it threw this error:我尝试创建一个名为“METADATA”的文件夹以查看是否有任何更改,但随后抛出了此错误:
Could not install packages due to an EnvironmentError: [Errno 21] Is a directory: '/Users/MyAccountNameHere/Library/Python/3.7/lib/python/site-packages/pip-19.0.1.dist-info/METADATA'
Not sure how to solve, help appreciated.不知道如何解决,感谢帮助。
请尝试pip install pylint
(Windows,在提升的提示下) sudo pip3 install pylint
(macOS/Linux)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.