Intellij没有找到通过pip安装的Python模块 [英] Intellij not finding Python modules installed via pip
本文介绍了Intellij没有找到通过pip安装的Python模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过 sudo pip install nltk
安装了 nltk
包,它运行正常:
I have installed the nltk
package via sudo pip install nltk
and it works fine:
21:07:00/~ $python -c "import nltk"
为了确保没有与 brew冲突
pip我也做了:
Just to be sure there were no clashing with brew
pip I also did:
21:06:24/~ $python -m pip install nltk
Requirement already satisfied: nltk in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: six in /usr/local/lib/python2.7/site-packages (from nltk)
所以brew和system python都很开心。
So both brew and system python are happy together.
Intellij是另一个故事。基本的python正在运行,但是pip安装的库是MIA:
Intellij is another story. The basic python is working but the pip installed libraries are MIA:
以下是相关的SDK设置:
Here are the relevant SDK settings:
模块级别:
项目级别:
那么这个项目需要什么来欢迎pip库呢?
So what is needed in this project to have pip libraries welcomed?
推荐答案
切换到 brew
安装了python修复了这个问题。
Switching to the brew
installed python fixed the issue.
这里是 nltk
立即解决:
这篇关于Intellij没有找到通过pip安装的Python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文