My FreeCAD software runs on Windows 10. Its built-in Python console uses Python 3.8. In order to import its modules to an external Python, I created a Python3.8 environment in anaconda and the module can be successfully imported with Jupyter QtConsole. However, import errors show up when I do the same thing in Spyder. Does anyone have a similar problem? Any idea what is going on here? (see the images below) successful import in Jupyter QtConsole Failed import in Spyder

1

There are 1 best solutions below

0
On

I uninstall the Freecad program and use ananconda to reinstall the Freecad package. Now the Spyder works fine.

FYI: Use the following command (I copied from the wiki page) to do the installation: "conda create --name fcenv --channel conda-forge freecad"

Creating a new environment seems to be necessary. Otherwise, the installation will fail.