FreeCAD / FreeCAD_Conda

conda recipes for freecad and dependencies of freecad
GNU Lesser General Public License v2.1
42 stars 17 forks source link

install FreeCAD_Conda inside an existing environment #42

Open hex41434 opened 3 years ago

hex41434 commented 3 years ago

Hi,

thanks for your previous help, I could successfully create a new environment and execute my codes on Windows, Mac and Linux.

now my question: I do not know how can I add this package to an existing environment (for instance : running freecad scripts (including fem) inside my existing environment along with Pytorch )

(as a second solution, I think I can create a freecad env and then add Pytorch to it - but I still prefer to use my existing env because I have a lot of dependencies there)

Thanks In advance

looooo commented 3 years ago

You can simple use conda install freecad within the specific environment. Otherwise you can create a new environment with multiple drpendencies like this: conda create -n my_env freecad pytorch ...

hex41434 commented 3 years ago

I actually tried this: conda install freecad qt=5.9.* -c freecad/label/dev -c conda-forge

and unfortunately, it has conflict with my Linux: (I have cuda 10.1)

image

could you recommend me an specific version of freecad that FEM toolbox works well and has no conflict with my environment?

looooo commented 3 years ago

Why 5.9 ? Recent freecad uses qt5.12.

hex41434 commented 3 years ago

Why 5.9 ? Recent freecad uses qt5.12.

(sorry for my late reply, I had a very important meeting for today.)

so, I tried simply the last version too: conda install -c conda-forge freecad

and still has conflicts... I am trying different versions. when I find a solution I would share here.

Regards

hex41434 commented 3 years ago

I have a Linux OS and cuda: version 10.1 I tried to install a clean conda environment for pytorch using this link: conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.1 -c pytorch and then conda install -c conda-forge freecad and I got this:

image

I would be happy if you have any suggestion ( I need FEM package besides Pytorch)