围绕此有很多问题,因此可能是重复的,但是我找不到解决方案,所以这里是。
我想在原子上使用pylint。如果我使用推荐的方法,pip install --user pylint它似乎可以工作,但是原子找不到,我也不能;which pylint和whereis pylint返回任何结果。如果我使用,也会发生同样的事情pip3。
如果我违背智慧并使用sudo pip install pylint它被发现,但现在我得到原子不同的错误:unable to determine environment。
有什么建议么?
我正在尝试在我的 python 代码上运行 flake8 linter,但我遇到了一些问题。
运行 pip install 给了我这个响应:
~ pip install flake8
Requirement already satisfied: flake8 in ./Library/Python/2.7/lib/python/site-packages
Requirement already satisfied: enum34; python_version < "3.4" in ./Library/Python/2.7/lib/python/site-packages (from flake8)
Requirement already satisfied: configparser; python_version < "3.2" in ./Library/Python/2.7/lib/python/site-packages (from flake8)
Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in ./Library/Python/2.7/lib/python/site-packages (from flake8)
Requirement already satisfied: pycodestyle<2.4.0,>=2.0.0 in ./Library/Python/2.7/lib/python/site-packages (from flake8)
Requirement already satisfied: pyflakes<1.6.0,>=1.5.0 in ./Library/Python/2.7/lib/python/site-packages (from flake8)
Run Code Online (Sandbox Code Playgroud)
但是当我尝试运行它时,我收到了这个错误。
~ flake8 --version
zsh: command not found: flake8
Run Code Online (Sandbox Code Playgroud)
如果这有什么不同,我也在使用 mac。
请任何人都可以帮忙。