当我尝试从Visual Studio Code的弹出窗口“未安装Linter Pylint”或通过使用pip install pylon --user
的控制台安装PyLint时,出现以下错误:
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'
我尝试创建一个名为“ 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'
不确定如何解决,不胜感激。
答案 0 :(得分:0)
请尝试
pip install pylint
(Windows,在提升的提示下)
sudo pip3 install pylint
(macOS / Linux)