|
|
|
This page describes a way to install a python package, which is not included into standard Blender's distribution, to be usable from Blender and from Sverchok.
|
|
|
|
|
|
|
|
# Install pip
|
|
|
|
|
|
|
|
* Download get-pip.py script. I took it from https://bootstrap.pypa.io/get-pip.py, the correct link should be in documentation https://pip.pypa.io/en/stable/installing/ .
|
|
|
|
* Install pip into your blender's python location:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ /path/to/blender/2.xx/python/bin/python3 /path/to/get-pip.py
|
|
|
|
```
|
|
|
|
|
|
|
|
(exact name of `python` executable depends on specific blender build).
|
|
|
|
|
|
|
|
# Package installation
|
|
|
|
|
|
|
|
* Now you can install anything, for example scipy, with pip into your blender's python:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ /path/to/blender/2.xx/python/bin/python3.5m /path/to/blender/2.xx/python/lib/python3.5/site-packages/pip install scipy
|
|
|
|
```
|
|
|
|
|
|
|
|
Note: you may have to adjust paths depending on blender's and python's versions.
|
|
|
|
|
|
|
|
After that, you can for example run
|
|
|
|
|
|
|
|
```python
|
|
|
|
from scipy.spatial import Voronoi
|
|
|
|
```
|
|
|
|
|
|
|
|
from blender's python console to check if scipy installed successfully.
|
|
|
|
|
|
|
|
Links:
|
|
|
|
https://blender.stackexchange.com/questions/56011/how-to-use-pip-with-blenders-bundled-python/56013#56013
|
|
|
|
https://blender.stackexchange.com/questions/5287/using-3rd-party-python-modules |
|
|
|
\ No newline at end of file |