paddle.init(use_gpu=False, trainer_count=1) 出现错误
Created by: wangxiaobaidu11
import paddle.v2 as paddle paddle.init(use_gpu=False, trainer_count=1) 出现错误
RuntimeErrorTraceback (most recent call last)
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
ImportErrorTraceback (most recent call last)
<ipython-input-22-c695be438938> in <module>()
----> 1 paddle.init(use_gpu=False, trainer_count=1)
/opt/conda/lib/python2.7/site-packages/paddle/v2/__init__.pyc in init(**kwargs)
117
118 def init(**kwargs):
--> 119 import py_paddle.swig_paddle as api
120 args = []
121 args_dict = {}
/opt/conda/lib/python2.7/site-packages/py_paddle/__init__.py in <module>()
13 # limitations under the License.
14
---> 15 from util import DataProviderWrapperConverter
16 from dataprovider_converter import DataProviderConverter
17
/opt/conda/lib/python2.7/site-packages/py_paddle/util.py in <module>()
16 """
17
---> 18 import swig_paddle
19 import os
20 import paddle.trainer.PyDataProviderWrapper
/opt/conda/lib/python2.7/site-packages/py_paddle/swig_paddle.py in <module>()
26 fp.close()
27 return _mod
---> 28 _swig_paddle = swig_import_helper()
29 del swig_import_helper
30 else:
/opt/conda/lib/python2.7/site-packages/py_paddle/swig_paddle.py in swig_import_helper()
22 if fp is not None:
23 try:
---> 24 _mod = imp.load_module('_swig_paddle', fp, pathname, description)
25 finally:
26 fp.close()
ImportError: numpy.core.multiarray failed to import
python version: Python 2.7.14 :: Anaconda, Inc. numpy version: numpy-1.12.1