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 模块


基础教程推荐
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 筛选NumPy数组 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01