如何安装Pylint,克服错误

2024-10-01 17:37:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我开始着手研究Python,其中一部分就是让它在我的macbookpro上运行起来。我正在努力安装pylint,因为visualstudio代码一直在通知我。在

我被告知有一个皮棉操作是有益的,虽然我不能告诉你为什么,但我决心从一开始就把事情做好。说到编码,我是个十足的傻瓜。请友好一点。在

我在github上找到了这个链接,尽管我的回答有些模糊:https://github.com/pypa/pip/issues/5465

附带问题-pip和pip3之间有区别吗?我的垃圾箱里好像都有。谢谢:)

我尝试过的

我安装了Python2.7(使用mac进行系统安装)和Python3.7(hombrew安装)。我已经更新了pip(为此我不得不使用'pip3 install--update pip')

我试过了: pip安装电缆塔 pip3安装电缆塔 sudo pip安装pylint

当我尝试sudo时(我后来读到这是不可取的),我也得到了以下警告:

WARNING: The directory '/Users/maxwartelle/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/Users/maxwartelle/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

这是安装的完整输出。我想它是在使用缓存文件,就像我试过几次一样,第一次下载的时候。在

^{pr2}$

Tags: pipandthegithubpip3librarysudousers

热门问题