简体   繁体   中英

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:

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:

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM