Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ibressler/b9139ca80346eefd7550fbfee2fbd47a to your computer and use it in GitHub Desktop.
Save ibressler/b9139ca80346eefd7550fbfee2fbd47a to your computer and use it in GitHub Desktop.
Python+Miniforge+JupyterLab Install and Update Guide for Windows

Python+Miniforge+JupyterLab Install and Update Guide for Windows

  • For a unprivileged user, without administrative rights
  • If a window, asking for an (admin) password pops up during installation or when installing any packages, just ignore it by closing the window. The installers should switch to user-mode then.

Install

  1. Search for Miniforge in the Internetz or download from here directly: https://conda-forge.org/miniforge/

  2. Install Miniforge for the current user only

  3. Create a dedicated environment for Jupyter Lab:

     conda create --name jlab
    

    And activate it:

     conda activate jlab
    
  4. Install further packages, such as Jupyter Lab, Pandas and more:

     conda install jupyterlab numpy scipy pandas openpyxl lmfit
    
  5. Install nbopen via pip because it is not available in the conda-forge channel:

     pip install nbopen
    

    Install the Windows App association for Jupyter Notebooks so that they open once double-clicked:

     python -m nbopen.install_win
    

Update

Open Miniforge Prompt in environment (base) and enter the command:

conda update --all -c conda-forge

After a while a list of packages to update appears. Accept and proceed by typing y followed by pressing the Enter key.

Note: The same applies for other environments. For the jlab environment created above, you need to activate that first by conda activate jlab and then updating all packages by the command given here: conda update --all -c conda-forge.

GIT for version control

For installing GIT, just use conda in the respective environment where it is needed, for example :

conda activate <my-env>
conda install git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment