[英]Cannot import scitools using Anaconda-Python
I am trying to install scitools with the hope of being able to use Easyviz. 我正在尝试安装scitools ,希望能够使用Easyviz。 I installed scitools for windows as suggested in the first link.
我按照第一个链接中的建议安装了Windows的scitools。 However, when I type
from scitools.std import *
into python I get the following error message: 但是,当我
from scitools.std import *
输入python时,出现以下错误消息:
ImportError: No module named oldnumeric.mlab
numpy import failed!
see doc of scitools.numpytools module for how to choose Numeric instead
This was discussed here and categorized as fixed, however I don't see how I can make this work or how to fix it. 这里讨论了这个问题,并将其归类为“固定”,但是我看不到如何进行这项工作或如何对其进行修复。 Is there something I am supposed to do to make this work?
我应该做些什么使这项工作吗?
I encountered the same issue on Ubuntu 16.04 LTS. 我在Ubuntu 16.04 LTS上遇到了相同的问题。 However, such issue was not found on Trisquel GNU Linux.
但是,在Trisquel GNU Linux上找不到此问题。 The solution which I found by randomly testing was - Do not import scitools.
我通过随机测试发现的解决方案是-不要导入scitools。 Just import numpy.
只需导入numpy。
As an example if you were to write - from scitools.std import *
simply do - import numpy as np
and use numpy libraries. 例如,如果您要编写-
from scitools.std import *
只需做- import numpy as np
并使用numpy库。 For plotting use matplotlib that will solve this issue. 对于绘图,请使用matplotlib来解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.