FreeCAD_Conda icon indicating copy to clipboard operation
FreeCAD_Conda copied to clipboard

install FreeCAD_Conda inside an existing environment

Open hex41434 opened this issue 3 years ago • 5 comments

Hi,

thanks for your previous help, I could successfully create a new <freecad_fem_env> 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

hex41434 avatar Mar 05 '21 15:03 hex41434

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 ...

looooo avatar Mar 05 '21 17:03 looooo

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?

hex41434 avatar Mar 05 '21 17:03 hex41434

Why 5.9 ? Recent freecad uses qt5.12.

looooo avatar Mar 05 '21 18:03 looooo

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 avatar Mar 09 '21 10:03 hex41434

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)

hex41434 avatar Mar 09 '21 11:03 hex41434