我试图在我的python代码上运行flake8 linter,但我遇到了一些问题。zsh:命令未找到:flake8但flake8已安装
运行PIP安装给了我这样的响应:
~ 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)
但后来当我尝试运行它,我得到这个错误。
~ flake8 --version
zsh: command not found: flake8
我正在使用MAC,如果这有什么区别。
请任何人都可以帮忙。
这是在那里 '〜回声$ PATH 在/ usr /本地的/ opt /的coreutils/libexec目录/ gnubin:/ USR /本地的/ opt /的coreutils/libexec目录/ gnubin:在/ usr/local/bin目录:在/ usr/bin中:/ bin中:/ usr/sbin目录:/ sbin目录:/Applications/Wireshark.app/Contents/MacOS:在/ usr /本地/ lib目录/ python2.7/site-packages中/ flake8' –