在Windows 10上安装fbprophet Python时出现Numpy错误

时间:2019-08-21 13:05:53

标签: python-3.x windows numpy anaconda facebook-prophet

我正在尝试在我的win10 64位计算机(anaconda)上安装fbprophet。我已按照here herehere的指示进行操作,但是我仍然遇到相同的错误:

ImportError                               Traceback (most recent call last)
<ipython-input-1-7dd3504c366f> in <module>
----> 1 import pandas as pd

~\Anaconda3\envs\fbprophet\lib\site-packages\pandas\__init__.py in <module>
     15 if missing_dependencies:
     16     raise ImportError(
---> 17         "Unable to import required dependencies:\n" + "\n".join(missing_dependencies)
     18     )
     19 del hard_dependencies, dependency, missing_dependencies

ImportError: Unable to import required dependencies:
numpy: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.7 from "C:\Users\Ran\Anaconda3\envs\fbprophet\python.exe",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.17.0" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: DLL load failed: The specified module could not be found.

我认为它与numpy版本有关,但是我为fbprophet在虚拟环境中创建的版本是必需的(1.17)。看来此环境尝试使用不同版本的numpy。 我在anaconda基础和其他虚拟环境中安装了numpy,但没有任何问题。仅当我尝试安装fbprophet时,它才会发生。

更新: 我可以通过卸载numpy(v 1.17)并安装numpy v1.16来解决该问题

0 个答案:

没有答案