【发布时间】:2017-04-19 03:06:04
【问题描述】:
我是 python 的新程序员。我在 64 位窗口中使用 python 3.5。
我安装了 libpgm 模块,但是当我输入 from libpgm.pgmlearner import PGMLearner 时出现此错误:
ImportError, "numpy is not installed on your system."
然后我使用 pip 安装 numpy。现在当我输入import numpy我没有得到任何错误但是当我输入from libpgm.pgmlearner import PGMLearner我得到这个错误:
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
from libpgm.pgmlearner import PGMLearner
File "C:\Users\Asus\AppData\Local\Programs\Python\Python35\lib\site-packages\libpgm\pgmlearner.py", line 35
raise ImportError, "numpy is not installed on your system."
有谁可以帮助我吗?...谢谢。
【问题讨论】:
-
你的机器上是否安装了多个 Python 环境?
-
见 this previous question - 你可能已经安装了 python 2.7 和 3.5
-
@fahi 看到这个:stackoverflow.com/questions/11200137/…