1. 程式人生 > >flownetwork 首次安裝tensorflow執行時會出現ImportError: numpy.core.multiarray failed to import的解決方案

flownetwork 首次安裝tensorflow執行時會出現ImportError: numpy.core.multiarray failed to import的解決方案

環境:
win7
python 2.7.14
numpy 非最新版

from flownetwork import flownetwork as fn`這裡寫程式碼片`
import networkx as nx
import matplotlib.pyplot as plt

print fn.__version__

首次安裝flownetwork,
pip install flownetwork
匯入模組發現不能執行,缺失statsmodels庫,安裝後,發現ImportError: numpy.core.multiarray failed to import,是numpy的核心出了問題,解除安裝重灌,問題解決。
但是我的版本有報錯:
C:\Python27\lib\site-packages\statsmodels\compat\pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead.
from pandas.core import datetools