【问题标题】:Problems importing scipy.integrate module导入 scipy.integrate 模块的问题
【发布时间】:2013-12-19 10:51:20
【问题描述】:

我在导入 scipy 的集成模块时经常遇到问题。

我会定期收到错误消息“ImportError:无法导入名称集成”。 通常,我使用声明import scipy.integrate 来导入模块。

仅使用 import scipy 成功导入 scipy 但没有集成模块。

有趣的是,每次我启动 Python 时,这种行为都会发生变化。所以有时即使运行相同的脚本也能正常工作。

有人有什么建议吗?

【问题讨论】:

  • 你是怎么安装的? from scipy import test; test() 显示什么?
  • 振亚您好,感谢您的回答。该命令产生以下输出。 Running unit tests for scipy NumPy version 1.8.0 NumPy is installed in C:\Python27\lib\site-packages\numpy SciPy version 0.13.1 SciPy is installed in scipy Python version 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] nose version 1.3.0 在此语句之后,我收到以下错误消息:WindowsError: [Error 3] The system cannot find the path specified: 'scipy/*.*'

标签: python python-2.7 scipy integrate


【解决方案1】:

我遇到了同样的问题。

我的问题是 python-2.7 不允许我导入 scipy.integrate,但 python-3.x 允许导入。

【讨论】:

    猜你喜欢
    • 2011-06-06
    • 1970-01-01
    • 1970-01-01
    • 2015-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多