PyDSTool 无法识别 SciPy 版本 [英] PyDSTool do not recognize SciPy version

查看:46
本文介绍了PyDSTool 无法识别 SciPy 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 PyDSTool 包:

pip install PyDSTool==0.90.2

它返回:

Requirement already satisfied: PyDSTool==0.90.2 in /usr/local/lib/python2.7/dist-packages/PyDSTool-0.90.2-py2.7.egg
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from PyDSTool==0.90.2)
Requirement already satisfied: scipy>=0.9 in /usr/local/lib/python2.7/dist-packages (from PyDSTool==0.90.2)    
Requirement already satisfied: numpy>=1.6 in /usr/local/lib/python2.7/dist-packages (from PyDSTool==0.90.2)

它告诉我 scipy 的要求已经满足,但在 python 中:

It tell me that requirement for scipy is already satisfied but in python:

~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyDSTool
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyDSTool-0.90.2-py2.7.egg/PyDSTool/__init__.py", line 76, in <module>
    raise RuntimeError("SciPy v0.5.1 or above is required")
RuntimeError: SciPy v0.5.1 or above is required

我已经尝试了这篇文章中的解决方案,也看到了this unanswered post 似乎有类似的问题,但使用 conda 而不是 pip.

I already try the solution from this post and also saw this unanswered post which seems to have a similar problem but using conda instead of pip.

我也尝试下载包并安装与 setup.py 相关联,但我仍然遇到同样的问题

I also try to download package and install with the setup.py associated but I still have the same problem

编辑 2:

要解决这个问题,另一种选择是降级 scipy :

To solve this problem an other option is to downgrade scipy :

pip install scipy==0.19.1

推荐答案

sourceforge 的 PyDSTool 项目主页已关闭:http://pydstool.sourceforge.net/ 指向 http://www.ni.gsu.edu/~rclewley/PyDSTool/FrontPage.html 返回找不到文件".

The PyDSTool project homepage at sourceforge is down: http://pydstool.sourceforge.net/ points to http://www.ni.gsu.edu/~rclewley/PyDSTool/FrontPage.html that returns "file not found".

项目已移至 GitHub:https://github.com/robclewley/pydstool

The project has moved to GitHub: https://github.com/robclewley/pydstool

有几个问题与您一致.问题是,目前 SciPy 的 integrate 模块的开发已经中断了来自 PyDSTool 的调用.

There are several issues in line with yours there. The problem is that, currently, the development of SciPy's integrate module has broken the calls from PyDSTool.

一种解决方案:使用旧版本的 SciPy.替代方法是找到自己的故障点或使用这里的 fork:https://github.com/tkf/pydstool/tree/tkf

One solution: use an older version of SciPy. The alternatives are either to find yourself the points of failure or to use the fork here: https://github.com/tkf/pydstool/tree/tkf

这篇关于PyDSTool 无法识别 SciPy 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆