Error when trying to import Scipy module to Blender There is an error when I want to import the scipy module into blender through the anaconda directory. How can I fix this error?

Code:

import sys

scipy_path = "C:\Users\ALAFG\AppData\Local\Continuum\anaconda3\lib\site-packages"

if not scipy_path in sys.path:
    sys.path.append(scipy_path)    

import scipy


Error:

Traceback (most recent call last):
File "&lt;blender_console&gt;", line 1, in &lt;module&gt;
File "/Users/ALAFG/AppData/Local/Continuum/anaconda3/Lib/site- 
packages\scipy\__init__.py", line 118, in &lt;module&gt;
from scipy._lib._ccallback import LowLevelCallable
File "/Users/ALAFG/AppData/Local/Continuum/anaconda3/Lib/site- 
packages\scipy\_lib\_ccallback.py", line 1, in &lt;module&gt;
from . import _ccallback_c
ImportError: cannot import name '_ccallback_c'
Just a guess, but perhaps you have a different version of python installed on your system than the one being used by Blender.

To keep things simple, I usually install scipy into Blender's python.

I run the get_pip.py file in Blender's text editor.

Then I install using pip by running this in the text editor:

import pip

pip.main(['install', 'scipy'])


Doing this will allow you to import scipy without needing to append any path.

Depending on how you have Blender installed, you may need to run Blender with administrator priveledges in order to do this.