How to start Freecad with Python 3 ?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
How to start Freecad with Python 3 ?
Hello all, i'm trying to find out how to to start my freecad with python3. I have python 2 and 3 installed by default on my system but every time it launches with python2. Looking for a way to launch freecad with the desired python. How to do that is what i've not been able to figure out.
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: How to start Freecad with Python 3 ?
Depends on how you got the Python 3 version, if it's Debian Unstable do sudo update-alternatives --config freecad and pick the freecad-python3 option.
Re: How to start Freecad with Python 3 ?
First of all you need a compiled FreeCAD version that linked against Python3. You cannot have a FreeCAD version linking against Python2 and then all sudden start it with Python3.regis wrote: ↑Sun Feb 17, 2019 4:08 am Hello all, i'm trying to find out how to to start my freecad with python3. I have python 2 and 3 installed by default on my system but every time it launches with python2. Looking for a way to launch freecad with the desired python. How to do that is what i've not been able to figure out.
Re: How to start Freecad with Python 3 ?
the Python3 version came with the Linux Mint 19.1 by defaultkkremitzki wrote: ↑Sun Feb 17, 2019 5:10 am Depends on how you got the Python 3 version, if it's Debian Unstable do sudo update-alternatives --config freecad and pick the freecad-python3 option.
OS: Linux Mint 19.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
is there a link to any tutorial on how to do that?
Re: How to start Freecad with Python 3 ?
Check the CompileOnUnix page in the wiki how to set up a build environment.
Once you run cmake check its output to see which Python version is used. If it still uses Py2 then change the PYTHON_EXECUTABLE variable to point to the Py3 version and rerun cmake.
Once you run cmake check its output to see which Python version is used. If it still uses Py2 then change the PYTHON_EXECUTABLE variable to point to the Py3 version and rerun cmake.
Re: How to start Freecad with Python 3 ?
If you don't want to compile FreeCAD yourself, you can try out AppImage:
https://github.com/FreeCAD/FreeCAD/releases/
Conda based one offers Py3/Qt5 build and PPA based one Py2/Qt4 build.
https://github.com/FreeCAD/FreeCAD/releases/
Conda based one offers Py3/Qt5 build and PPA based one Py2/Qt4 build.
Re: How to start Freecad with Python 3 ?
That's impossible. Linux Mint 19.1 is based on Ubuntu 18.04, which still comes with the obsolete 0.16.6712 version.
https://packages.ubuntu.com/bionic/freecad
You are most certainly using the freecad-daily PPA; it has not been switched to the update-alternatives version yet, it is still built with Python2 only.
Kurt ported his Debian work on his own PPA last month, but he hasn't updated the package since.
https://launchpad.net/~kkremitzki/+arch ... /+packages
Note that this package will conflict with the freecad_0.15.13541 package from the freecad-stable PPA.
Re: How to start Freecad with Python 3 ?
Thanks for now this doesn't make much sense.
Indeed this worked, but does this appimage account for daily releases aswell?triplus wrote: ↑Sun Feb 17, 2019 1:59 pm If you don't want to compile FreeCAD yourself, you can try out AppImage:
https://github.com/FreeCAD/FreeCAD/releases/
Conda based one offers Py3/Qt5 build and PPA based one Py2/Qt4 build.