I’m trying to import FreeCAD as part of an application I’m developing, but I can’t import FreeCAD as a module.
I’ve read all the wik documents and tried several tutorials, but none of them worked
I use the windows operating system and I have installed python 3.9.1
You must set the path to the FreeCAD libraries located in the lib directory, located where you have FreeCAD installed
One option is to create the environment variable PYTHONPATH: https://www.geeksforgeeks.org/pythonpath-environment-variable-in-python/
Another option: https://docs.python.org/3/library/site.html
I tried adding a PYTHONPATH variable but the following message appears “The use of the python36.dll module conflicts with this version of Python.”, what can it be?
@Maykow Can you paste the information of the version of freecad that you are using?
You must use a version of Python compatible with the version of Python used by FreeCAD.