LINUX.ORG.RU

Где должны лежать модули для python?

 


0

1

Ну, или что я делаю не так:

PYTHON INTERACTIVE CONSOLE 3.6.6 (default, Oct 17 2018, 07:23:22)  [GCC 6.4.0]

Command History:     Up/Down Arrow
Cursor:              Left/Right Home/End
Remove:              Backspace/Delete
Execute:             Enter
Autocomplete:        Ctrl-Space
Zoom:                Ctrl +/-, Ctrl-Wheel
Builtin Modules:     bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf, mathutils
Convenience Imports: from mathutils import *; from math import *
Convenience Variables: C = bpy.context, D = bpy.data

>>> import Blender
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
ModuleNotFoundError: No module named 'Blender'
>>> print (sys.path)
['/usr/share/blender/2.79/scripts/addons', '/usr/share/blender/2.79/scripts/startup', '/usr/share/blender/2.79/scripts/modules', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/usr/lib64/python3.6/site-packages', '/usr/share/blender/2.79/scripts/freestyle/modules', '/usr/share/blender/2.79/scripts/addons/modules', '/home/user/.config/blender/2.79/scripts/addons/modules']