我使用以下命令安装了一个名为 mgltools 的工具
conda install mgltools
Run Code Online (Sandbox Code Playgroud)
当我尝试使用命令测试安装时,pmv出现以下错误
setting PYTHONHOME environment
Run PMV from /home/satyajeet/miniconda2/MGLToolsPckgs/Pmv
Traceback (most recent call last):
File "/home/satyajeet/miniconda2/MGLToolsPckgs/Pmv/__init__.py", line 369, in runPmv
from mglutil.splashregister.splashscreen import SplashScreen
File "/home/satyajeet/miniconda2/MGLToolsPckgs/mglutil/splashregister/splashscreen.py", line 7, in <module>
from mglutil.util.misc import ensureFontCase
File "/home/satyajeet/miniconda2/MGLToolsPckgs/mglutil/util/misc.py", line 19, in <module>
import numpy.oldnumeric as Numeric
ImportError: No module named oldnumeric
hit enter to continue
Run Code Online (Sandbox Code Playgroud)
从网上论坛,我发现问题出在numpy版本上。之后,支持oldnumeric被撤回numpy 1.9,我开始跑步numpy 1.15。所以我将 numpy 降级为numpy 1.8.1使用以下命令
python -m pip install numpy==1.8.1
Run Code Online (Sandbox Code Playgroud)
但现在我收到一个新错误 …