FlowModelingControl / flowtorch

flowTorch - a Python library for analysis and reduced-order modeling of fluid flows
GNU General Public License v3.0
131 stars 45 forks source link

Can I install flowtorch on windows wsl(ubuntu 20.04)? #36

Closed smallduan closed 1 year ago

smallduan commented 1 year ago

Hello

I want to use flowtorch on my windows systerm. I want to know if it can be installed by the wsl(I have tried to do it ,but I am failed).

AndreWeiner commented 1 year ago

Dear @smallduan, I have yet to have the chance to test flowTorch on Windows. A few pieces of code are Linux/Unix specific (Dataloaders), but I plan to replace them. In the WSL/Ubuntu, everything should work as usual. Can you clarify why precisely the installation process fails? Best regards, Andre

smallduan commented 1 year ago

Dear @AndreWeiner

Thank you for your help.

  1. I installed the flowtorch use pip3 install git+https://github.com/FlowModelingControl/flowtorch.

  2. I installed Paraview and changed the .bashrc step2

  3. I use vscode to try the example from the online document in Optimal hard threshold for singular values with python3.8.10 step1

  4. Then I get errors step3 step4

Best regards smallduan

AndreWeiner commented 1 year ago

The problem comes from the ParaView Python module. ParaView comes with some versions of standard Python packages that sometimes conflict with the system's versions. I am still trying to figure out how to avoid this conflict in the installation procedure. Two solutions: 1) if you don't need the ParaView module (no Tecplot data):

Option 1) is definitely the better one. Hope this helps. Best, Andre

smallduan commented 1 year ago

Dear @AndreWeiner

I have tried the option1 230326

and restart the wsl, but the same errors still account when I try to use from flowtorch.analysis import SVD. Maybe this problem is caused by the WSL.

smallduan commented 1 year ago

Dear @AndreWeiner

I am going to install anaconda in wsl and try again. I hope I can finish it successfully.😊

smallduan commented 1 year ago

Hello @AndreWeiner

I have installed flowtorch successfully by conda environment by option1. I think the problem above may caused by the system python environment.

Best regards smallduan

AndreWeiner commented 1 year ago

Dear @smallduan, thank you so much for reporting back on how exactly you made it work. That will be very helpful for me when creating instructions for a Windows setup at some point in the future. I'll close this issue for now. Thanks again, Andre