I installed the TensorFlow and scikit_learn packages and all its dependencies. When I try to import them using python 2.7.6 or 2.7.10 (I tried both) in the terminal, it works fine. However, when I do this with pycharm, it gives an error.
In the case of scikit_learn with the 2.7.6 launcher, it says: ImportError: the dynamic module does not define the init function (init_check_build)
In the case of scikit_learn with the 2.7.10 launcher, it says: ValueError: numpy.dtype is the wrong size, try recompiling
For TensorFlow with launcher 2.7.6 it says: ImportError: dlopen (/Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 2): no suitable image found. Found: / Library / Python / 2.7 / site-packages / tensorflow / python / _pywrap_tensorflow.so: mach-o, but the wrong architecture
In the case of TensorFlow with launcher 2.7.10 it says: ImportError: there is no module named copyreg
Error importing tensor flow. If you are not using bazel, you should not try to import shadoworflow from its source directory; exit the tensor stream source tree and restart your python interpreter from there.
I tried to search the net, but the solutions for me did not work. I tried to remove them and install them again using pip, conda and directly from the source code, and it always gives the same errors. I even tried reinstalling pycharm with no luck.
Other libraries like scilab or numpy work great in pycharm.
Any ideas? It just makes me think. By the way, I am using Mac OS 10.10.5.
source share