run pip install paddle On mac, it will fail due to _swig_paddle not found
Created by: tanzhongyi003
After run pip install paddlepaddle on mac, I run some python under books. it will fail due to error _swig_paddle module not found.
here is the error message.
paddle.init(use_gpu=False, trainer_count=1)
File "/Library/Python/2.7/site-packages/paddle/v2/__init__.py", line 66, in init
import py_paddle.swig_paddle as api
File "/Library/Python/2.7/site-packages/py_paddle/__init__.py", line 15, in <module>
from util import DataProviderWrapperConverter
File "/Library/Python/2.7/site-packages/py_paddle/util.py", line 18, in <module>
import swig_paddle
File "/Library/Python/2.7/site-packages/py_paddle/swig_paddle.py", line 21, in <module>
_swig_paddle = swig_import_helper()
File "/Library/Python/2.7/site-packages/py_paddle/swig_paddle.py", line 20, in swig_import_helper
return importlib.import_module('_swig_paddle')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named _swig_paddle