Activity
Mon
Wed
Fri
Sun
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
What is this?
Less
More

Memberships

CG Python Academy (Free)

1.1k members โ€ข Free

1 contribution to CG Python Academy (Free)
Python module import fails
Dear community, I apologise if this question was discussed previously, but I couldn't find so far any ways to resolve that. When trying to import a pyodbc module when scripting in blender it says that the module is not found, even tough it was installed to the packages' dir. I also tried to install the module to a separate folder and specify the path - didn't work as well. When trying to use the module with the system python I have no issues. Could it be the blender's python that needs to be adjusted somehow? Thanks to everybody that will spent reading this message! Cheers!
Python module import fails
1 like โ€ข Jan '25
@Victor Stepanov Thanks for your replies! I've just realised that on my machine the main python is 3.8.10. Could it be the problem? I just thought that pip doesn't matter here. Also, after watching your video about installing the modules with the --target argument I'm wondering if it's possible to use virtual environments in blender scripting somehow?
1 like โ€ข Jan '25
Ok, thank you, Victor, for the hints. I installed the same python version on my machine and run pip from it with py -3.11 -m pip install ... --target = "...". Seems to work!
1-1 of 1
Artur Kuzminykh
1
3points to level up
@artur-k-4962
Explorer. BIM/CAD engineer

Active 403d ago
Joined Nov 26, 2024
Portugal
Powered by