卸载 numpy1.6.1 并在 Linux 上安装 numpy1.5.1 和 [它即将使用 GIPSY-OASIS II 版本6]



我将尝试使用软件gipsy-oasis ii版本6,所以我在linux上的python 2.7.3上安装了numpy-1.6.1,当我尝试验证它时(我的顾问并成功地跑了)[我是Linux和Python的初学者。]

numpy 1.6.1已安装,但Gipsy是用Numpy 1.5.1构建的。一些验证测试将失败。

AND THEN,
Preparing to run utility tests
  PASSED   - test of the env => xyz program
  PASSED   - test of pr2p
  PASSED   - test of the gps <=> prn programs
  PASSED   - test of qm programs
**FAILED** - test of some read programs & eci & jpl 
             Check log file in utility/run for details
  PASSED   - test of the rnx <=> crx programs
  PASSED   - test of stacov-related programs
  PASSED   - test of tdp programs
  PASSED   - test of the GIPSY time programs
  PASSED   - test of the tp_nml program
  Elapsed time: 27.4 seconds

我认为问题来自numpy 1.6.1,我认为我宁愿卸载/删除numpy 1.6.1,然后再安装另一个numpy版本,该版本似乎更好地解决了问题。

这意味着我要安装1.5.1,现在我将其下载为python-numpy.tar.gz(顺便说一句,我不知道如何卸载numpy 1.6.1或删除它或如何用我下载的1.5.1版本)。看到问题没有解决方案,我发现的只是我可能没有足够的搜索。

如果您很乐意为此找到出路。

您最好的选择是设置虚拟环境(使用Virtualenv)安装旧版本的numpy。即使您绝对需要在系统级别安装Numpy,也可以至少首先在虚拟环境中测试构建。完成该工作后,只需在需要时在虚拟环境中使用旧版本即可。如果您绝对必须在系统级别上安装旧版本的numpy,则确定它在虚拟环境中起作用后,可以在/usr/local下安装它。但是,请尝试避免在系统级别安装的软件,以替换较旧版本,因为这引起了依赖性问题。

安装Virtualenv后,创建并激活虚拟环境:

$ virtualenv foo
New python executable in foo/bin/python
Installing setuptools, pip...done.
$ . foo/bin/activate
(foo) $

然后,您可以告诉pip您想安装哪个版本的Numpy(无需自己下载):

(foo) $ pip install numpy==1.5.1

最新更新