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 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Intellij 找不到通过 pip 安装的 Python 模块


基础教程推荐
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 包装空间模型 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01