.. _install-mfix-windows: Windows Installation -------------------- MFiX has been developed and tested on the following Windows versions: - Windows 10 (64-bit) - Windows 11 (64-bit) If you have an issue running or installing MFiX on your system, ask for help at :ref:`support-forum`. Install Anaconda """""""""""""""" **Download** the 64-bit, Python 3, Windows version of `Anaconda `__ (~500 MB download) or `Miniconda `__ (~50 MB download). For instance, with the Anaconda installer: #. Double-click on the downloaded file. (At the time of writing, ``Anaconda3-2022.05-Windows-x86_64.exe``) #. **Uncheck** "Add Anaconda to my PATH environment variable" #. **Check** "Register Anaconda as my default Python" Anaconda is now installed. To verify, open the Start Menu, and run ``Anaconda Prompt⏎``. Alternative: Install Miniforge/mamba ===================================== `Miniforge `__ is a version of miniconda which is set up by default to use the ``conda-forge`` package repository (which MFiX uses), and also the ``mamba`` package manager, which is a version of ``conda`` that was rewritten for better performance. If you already have an Anaconda installation, you may continue to use it, but if you have never installed MFiX before you may want to try miniforge, for smaller download and faster installation. **Download** the Mambaforge installer for Windows from the `Miniforge release page `__, and run it. At the time of writing, the current mambaforge release is 4.12.0-2 and the file is ``Mambaforge-4.12.0-2-Windows-x86_64.exe``. In order to use ``mamba``, replace the ``conda`` command by ``mamba`` in the following instructions. If there is any problem with a ``mamba`` command, you can try again with ``conda`` - note that ``mamba`` is still somewhat new and may occasionally exhibit bugs. Install MFiX """""""""""" After installing Anaconda or Miniforge, install MFiX: #. Open a Terminal (Type "⌘-Spacebar", type "terminal") #. Browse to `MFiX Download `__ (requires registration and login) #. Copy the conda command #. Paste it in the Terminal. #. If using Miniforge, change ``conda`` to ``mamba`` at the start of the command. #. Press enter to run the command. .. note:: If you already installed MFiX, you may see the following message. Select ``y`` to confirm. .. code-block:: batch WARNING: A conda environment already exists Remove existing environment (y/[n])? y MFiX will be installed in a new conda environment. The process may take a few minutes to complete. .. _create-environment-windows: Run MFiX """""""" Open the Anaconda prompt by opening the Start Menu, type "Anaconda Prompt", and selecting the Anaconda Prompt. Then run the following commands: #. Run |conda_act_inline| #. Run ``mfix⏎`` Your prompt should look something like this: .. code-block:: batch :substitutions: C:\> conda create -n mfix-|version| mfix=|version| -c https://mfix.netl.doe.gov/.... C:\> conda env list # conda environments: # base * C:\Users\user\anaconda3 mfix-|version| C:\Users\user\anaconda3\envs\mfix-|version| C:\> conda activate mfix-|version| C:\(mfix-|version|)> conda env list # conda environments: # base C:\Users\user\anaconda3 mfix-|version| * C:\Users\user\anaconda3\envs\mfix-|version| C:\> mfix You are now ready to proceed to the :ref:`user-guide` and :ref:`tutorials`. Deactivate Conda Environment """""""""""""""""""""""""""" After using MFiX you can just ``exit`` to leave the Anaconda Prompt. However, if you need to deactivate the |conda_env_inline| conda environment, you can do so with: .. code-block:: batch :substitutions: C:\(mfix-|version|)> conda deactivate C:\> This returns to the base conda environment. Uninstall MFiX """""""""""""" To uninstall MFiX from a conda environment: .. code-block:: batch :substitutions: C:\(mfix-|version|)> conda uninstall mfix To remove the conda environment (if you have the environment activated, deactivate it first): .. code-block:: batch :substitutions: C:\(mfix-|version|)> conda deactivate C:\> conda env remove -n mfix-|version| To uninstall Anaconda entirely, go to "Add or remove programs" under Windows Control Panel, and uninstall Anaconda. .. note:: To learn more about managing conda environments, visit the `conda documentation `__ .