m******t 发帖数: 273 | 1 【 以下文字转载自 Statistics 讨论区 】
发信人: myregmit (myregmit), 信区: Statistics
标 题: import a stats module from Python
发信站: BBS 未名空间站 (Thu Mar 13 12:21:03 2014, 美东)
I need to import a stats module (from gamma) from python 3.3 on Win7.
In Eclipse++PyDev, I cannot import stats from scipy
from scipy import stats
error:
Unused import: stats
Import redefinition: stats
Unresolved import: stats
But, I can do it in iPython.
Also, I have installed ipython and can do it in ipython by
from scipy.stats import rv_discrete
But, I need to do it in Eclipse where I have added python, numpy and scipy
in it.
But, Eclipse tell me that
from scipy.stats import rv_discrete
error:
Unresolved import: rv_discrete
Import redefinition: rv_discrete
Unused import: rv_discrete
Any help would be really appreciated.
Thanks ! |
|