.. userinstructions .. _link_userinstructions: User Instructions ================= All platforms need to be set up to compile the FORTRAN code in the source distribution. I recommend that all platforms use `gfortran `_ , even Windows, in order to minimize the incompatibilities between different FORTRAN compilers. Install Numpy ------------- In addition, because `f2py `_ is part of the `numpy `_ package, all platforms will need `numpy `_ installed. Therefore, the first user instruction is the command:: pip install numpy OR perhaps... pip install --upgrade numpy Some Linux systems may require:: sudo pip install numpy Install GFORTRAN ---------------- Both developers and users need to install `gfortran `_ and each operating system has its own approach. Click: :ref:`link_installgfortran` to see install instructions for a few platforms that I have tested. .. important:: Windows users & developers MUST put MinGW into environment PATH variable. (see: :ref:`link_windowspath`) C:\MinGW\mingw64\bin OR C:\MinGW\mingw32\bin and C:\MinGW\mingw64\lib OR C:\MinGW\mingw32\lib Install Project --------------- Once `numpy `_ and `gfortran `_ are available, the project can be installed with:: pip install genericf2py ... OR for your project ... pip install and the project will be downloaded from `PyPI `_, the FORTRAN will be compiled and the project installed. Test Installation ----------------- After installing, GenericF2PY can be tested with the command line:: python -c "from genericf2py import main; main.main()" It would be good to provide a similar simple test for your project. Upgrade Project --------------- Once `numpy `_ and `gfortran `_ are installed, a new project version can be installed with:: pip install --upgrade genericf2py ... OR for your project ... pip install --upgrade