jnrtec.blogg.se

Install blender gis addon
Install blender gis addon













install blender gis addon

When I run the same file using Blender it looks different: blender -background -python test.pyĪs you noticed, the path to the default Python (usr/bin/python3) is not even included, instead, it includes the local Python interpreter and local packages. When we launch it from the default Python interpreter we will get the following output: python3 test.py Here is a script that we will be launched first from a regular Python interpreter and then from Blenders Python interpreter: import sys This can be controlled by changing the PATH environment variable. Blender in Linux has its own Python interpreter and its pip installer, it does not use the default installed versions always. uncomment the next code and launch script in blender interpreter again # packages_path = "C:\\Users\\\\AppData\\Roaming\\Python\\Python39\\Scripts" + "\\.\\site-packages" # the path you see in console insert the path to packages_path below and uncomment watch blender's python path in console output at this moment launch next 2 lines of code in blender python interpreter To show Blender terminal in v2.93 click Window -> Toggle System Console Successfully import your package in the script: import tqdm

install blender gis addon install blender gis addon

Packages_path = "C:\\Users\\\\AppData\\Roaming\\Python\\Python39\\Scripts" + "\\.\\site-packages" In blender script add the path where your blender's pip installs packages to PATH: import sys Install package you want from blender script ( tqdm for example given below): import pipįrom blender console watch the path where pip actually installs packages in your configuration ( WARNING: The script tqdm.exe is installed in 'C:\Users\\AppData\Roaming\Python\Python39\Scripts' which is not on PATH): For windows, with no special permissions, and from blender python script only:















Install blender gis addon