Use Anaconda Python in Blender

songfang han
1 min readJun 1, 2020

--

Above is a great instruction that helps when you need to use a lot of third-party in Blender and want to use your computer Conda python in place of Blender Internal python. Blender Internal python only has some basic modules such as bumpy.

Tried install modules with blender Internal python but unable to install torch successfully.

Before switching to the above solution, I tried to install modules with blender internal python with the following command

path/to/blender-2.8/2.80/python/bin/python3.7m -m ensurepip
path/to/blender-2.8/2.80/python/bin/python3.7m -m pip install -U pip
path/to/blender-2.8/2.80/python/bin/pip install numpy

While I successfully installed modules such as OpenCV-python, trimesh, the torch installed can not be imported and the error below:

Conda python instead of Blender Internal python

My Blender is 2.8.0 and the Internal python version is 3.7.0. Make sure to create a Conda env with python==3.7.0, which is your Blender Internal python version. Use the same python version can solve some unexpected issues.

1. conda create -n blender python=3.7.0

2. reanem the folder of Blender Python environment: mv path/to/blender/python path/to/blender/_python

3. link the folder of Conda Python: ln -s path/to/conda/python path/to/blender/python

--

--