cashjas.blogg.se

Blender ubuntu
Blender ubuntu








blender ubuntu

This will install the package into your Blender python environment. Then, open a cmd as admin (admin was extremely crucial for my machine?) in this directory and do something like:

blender ubuntu

mine is here:Ĭ:\Program Files\Blender Foundation\Blender 3.2\3.2\python\bin find out where your Blender's python.exe is stored. In the end, I've had success building bpy as a module inside of an anaconda environment (follow tutorial in link), or installing whatever packages I want inside of my Blender python environment. You can also check here for various workarounds: On linux you may be able to follow Failxxx's answer, or using mklink in Windows maybe the same (I couldn't get it to work, got weird "compiler" errors when trying to import bpy in blender). Long story short: just install things into the default blender environment or install bpy into an anaconda environment The tutorial is for another tool, but I needed to setup quite the same environment as what you want, I guess.Īfter struggling with this several times, and coming across it right now, I figured I'd share my solution.

blender ubuntu

I have rewritten these instructions from another tutorial I have written here In a terminal, run: pip (or conda) install under the blender anaconda environment (use: conda activate blender to switch environment) This creates a junction between the python folder in the Blender files and the folder in the Anaconda environments files. → So, enter: sudo ln -s ~/anaconda3/envs/blender/ python → If you have installed Anaconda with the default parameters, your conda env’ should be installed here: ~/anaconda3/envs/blender/ → When the installation is finished, enter: conda activate blender Link the Anaconda environment to Blender

blender ubuntu

→ Enter : conda create -name=blender python=3.9 → Deactivate the current python version: mv python _python Create a new anaconda environmentĪs mentioned here, the python version ( major and minor) must match the one that Blender comes with. → Go to your Blender files (for example: cd /usr/share/blender/3.0/) Here is how I proceed: Deactivate current python used by Blender










Blender ubuntu