简体   繁体   中英

FreeCAD import error while using Spyder "ImportError: DLL load failed while importing FreeCAD: The specified procedure could not be found."

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM