How to install python modules in blender

I am trying to install pyserial for blender, but I can only install it on python32 on my C drive, is there anything I can do to install it in blender or import blender from python32

+5
source share
3 answers

It seems that the blender has its own python and libs. You can try to directly install your materials in a blender. The following directory works for me:...\Blender 2.63\2.63\scripts\modules

In addition, you can always hard copy links directly to your code using sys.path.append("...")

Read more about the modules installing here , read about the python setup.py install --home=<dir>materials

+4
source

python ( 3.5 ) python blender, python ...

U cmd ( )

D:\Blender Foundation\Blender\2.77>mv python python_old
D:\Blender Foundation\Blender\2.77>mklink /j python d:\Anaconda2\envs\py3
Junction created for python <<===>> d:\Anaconda2\envs\py3
0

If you are on Windows, you can simply do python setup.py installit as usual with the python interpreter specified by blender. For example, 'c:/Program Files/Blender Foundation/Blender/2.78/python/bin/python.exe' setup.py install.

On Linux, I believe that my own python3 interpreter is used, so there is no such problem.

0
source

All Articles