Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确实喜欢这个
pip install flake8
然后,终端说它已经安装并且它在 .pyenv/versions/anaconda3-2.1.0/lib/python3.4/site-packages.但是,我确实喜欢这个
.pyenv/versions/anaconda3-2.1.0/lib/python3.4/site-packages.
which flake8
然后,终端什么也没说。为什么?我不能安装那个?
看来您pip正在使用来自 anaconda 的 pyenv 安装版本的 python。考虑到这一点,您应该确保也python指向该点并执行python -m flake8. 这会让你运行 flake8。
pip
python
python -m flake8
Flake8 不控制其可执行文件的安装位置,但只要您使用与python正在使用的相同pip,那么您仍然可以运行它。