相关疑难解决方法(0)

找不到pip安装的pylint

围绕此有很多问题,因此可能是重复的,但是我找不到解决方案,所以这里是。

我想在原子上使用pylint。如果我使用推荐的方法,pip install --user pylint它似乎可以工作,但是原子找不到,我也不能;which pylintwhereis pylint返回任何结果。如果我使用,也会发生同样的事情pip3

如果我违背智慧并使用sudo pip install pylint发现,但现在我得到原子不同的错误:unable to determine environment

有什么建议么?

macos pip pylint atom-editor

5
推荐指数
2
解决办法
2133
查看次数

zsh:找不到命令:flake8 但已安装 flake8

我正在尝试在我的 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。

请任何人都可以帮忙。

python zsh

4
推荐指数
2
解决办法
1万
查看次数

标签 统计

atom-editor ×1

macos ×1

pip ×1

pylint ×1

python ×1

zsh ×1