Pylinter could not automatically determined the path to lint.py.与sublimeText2问题的处理

问题描述:Pylinter could not automatically determined the path to lint.py. Please provide one in the settings file using the pylint_path variable. NOTE: If you are using a Virtualenv, the problem might be resolved by launching Sublime Text from correct Virtualenv.

如果对你有帮助,请留下你的支持话语!

解决方案:

一开使装了sublimeText2 ,安装了pylinter包,其实也没感觉出有啥用,不过第二天打开ST2后就打不开了,直接跳出了那个框,图忘记截了,不过里面的内容是:"Pylinter could not automaticallydetermined the path to lint.py. Please provide one in the settings file usingthe pylint_path variable. NOTE: If you are using a Virtualenv, the problemmight be resolved by launching Sublime Text from correct Virtualenv

       看到这个信息,,,我迷乱了,因为我找不到lint.py 文件,也不知道在哪儿添加变量,谷歌了好长时间,终于明白,,,因为我感觉根本没有成功地安装pylnter。现把解决方法提供如下:

1) 到官网先下载pylinterhttp://www.logilab.org/project/pylint,然后解压缩,看到里面的lint.py文件了吧~好,这是第一步。也能找到setup.py文件吧~

2)然后启动命令行cmd文件,切换到解压缩这个文件夹。

上截图:

看到最后的一句话了没,pythonsetup.py install

然后就是运行,稍微等10秒钟后就运行好了。

3)好,这个时候我们再去打开ST2,发现能打开了,对吧,但是呢,可能还会产生别的乱七八糟的问题,所以,最好的办法就是不用这个pylint,那么怎么不用呢,就是在ST2中,remove掉这个pylint,package才行。至于怎么remove,还记得ctrl+shift+p了吧,而是用推荐的 SublimeLinter

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值