我正在尝试安装mlabwrap
,但它无效。
我下载了它,我安装如下:
python setup.py install
我打开了Pycharm并输入了from mlabwrap import mlab
,遗憾的是我收到了以下错误。
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py",
line 2731, in run_code exec code_obj in self.user_global_ns, self.user_ns
File "<ipython-input-2-7a02b1481f8f>", line 1, in <module>
from mlabwrap import mlab
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition
4.0.4\helpers\pydev\pydev_import_hook.py", line 21, in do_import module =
self._system_import(name, *args, **kwargs)
ImportError: No module named mlabwrap
答案 0 :(得分:1)
您的系统上有多个Python解释器,每个解释器都有一组独立的包。如果您将软件包安装到主Python安装中,它将无法在Anaconda中使用。
尝试运行此命令将mlabwrap安装到Anaconda:
C:\Anaconda\python setup.py install