简体   繁体   English

为什么python 3.6.1在成功安装后无法识别numpy或pil或skimage

[英]why doesn't python 3.6.1 recognize numpy or pil or skimage after they have been successfully installed

I am getting these errors trying to run a python3 program in itelliJ IDEA on a mac. 我试图在mac上运行itelliJ IDEA中的python3程序时遇到这些错误。

import numpy as np
ModuleNotFoundError: No module named 'numpy'

from PIL import Image, ImageChops
ModuleNotFoundError: No module named 'PIL'

from skimage.feature import match_template # requires numpy, scipy, and six
ModuleNotFoundError: No module named 'skimage'

All of these modules have been successfully installed using pip3. 所有这些模块都已使用pip3成功安装。 I have confirmed the installs using IDLE. 我已经使用IDLE确认了安装。 Clearly, it seems, there is more to it than simply installing, but I don't know what it is. 很明显,它似乎比简单安装更多,但我不知道它是什么。

I cannot find anything that addresses concerns on python.org. 我找不到任何解决python.org问题的方法。 They, in fact, refer me to Stackoverflow. 事实上,他们将我推荐给Stackoverflow。 The closest I found here dealt with numpy and python2.7 on mac. 我在这里找到的最接近的是在mac上处理numpy和python2.7。 There are no responses to that one. 对那个没有回应。

Look in the Preferences for the Project Interpreter setting, and make sure it's pointing to the right python version. 查看Project Interpreter设置的Preferences,并确保它指向正确的python版本。

Secondly, since you're already using and IDE use PyCharm. 其次,既然你已经在使用和IDE使用PyCharm了。 It's IntelliJ's python specific IDE, and it'll have better documentation on python specific technical problems. 这是IntelliJ的python特定IDE,它将有更好的文档来解决python特定的技术问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM