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

Installation of flowtorch on Ubuntu 20.04 #5

Closed AndreWeiner closed 4 years ago

AndreWeiner commented 4 years ago

Hi Mahdi, to get started, follow the installation instructions below. Please, comment on missing pieces in the described installation process.

Installation on Ubuntu 20.04 via pip:

  1. install pip

    sudo apt update
    sudo apt install python3-pip pandoc
  2. install basic Python packages to run flowTorch

    pip3 install matplotlib mpi4py h5py jupyterlab
  3. install pyTorch (cpu version)

    pip3 install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
  4. for documentation and testing, additionally install

    pip3 install sphinx sphinx_rtd_theme nbsphinx pytest recommonmark
  5. to export the documentation as PDF file (make latexpdf), install

    sudo apt install latexmk texlive texlive-science texlive-formats-extra

    Miscellaneous (plotly)

    pip3 install plotly
    sudo snap install node --classic --channel=14
    jupyter labextension install jupyterlab-plotly

Let me if this works for you. Best, Andre

MehdiMak96 commented 4 years ago

done !! i had some problems downloading python3-pip and matplotlib but i solved them.

but i keep getting a warinig that say(WARNING: The scripts easy_install and easy_install-3.8 are installed in '/home/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.) is that okey?

AndreWeiner commented 4 years ago

To avoid the warning, you can add the line

export PATH=$HOME/.local/bin:$PATH

to your .bashrc file (located in your home directory; read more). Does that fix the warning message?

MehdiMak96 commented 4 years ago

yes the code got it fixed!! thanks