Installation
Installing pip
Introduction
The Lean CLI is distributed as a Python package, so it requires pip
to be installed. Because pip
is distributed as a part of Python, you must install Python before you can install the CLI. If you want to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz
, which will manage a virtual environment for you.
This page contains installation instructions for Anaconda, which is a Python distribution containing a lot of packages that are also available when running the LEAN engine. Having these packages installed locally makes it possible for your editor to provide autocomplete for them.
The Python distribution from the Microsoft Store is not supported.
Install on Windows
Follow these steps to install Anaconda on your computer:
- Download the latest 64-bit Graphical Installer for Windows.
- Run the installer and click .
- Read the licensing terms and click the I Agree check box.
- Select the Just Me check box and click .
- Select the destination folder to install Anaconda in (make sure this path does not contain spaces) and click .
- In the Advanced Options, enable the Add Anaconda3 to my PATH environment variable and Register Anaconda3 as my default Python 3.x check boxes and then click .
- After the installation has completed, restart your computer to make sure changes are propagated.
- Open a terminal and run:
$ conda update --all
Install on macOS (Intel)
Follow these steps to install Anaconda on your Mac with an Intel chip:
- Download the latest 64-bit Graphical Installer for macOS.
- Click on the Introduction, Read Me, and License pages.
- Agree to the license by clicking .
- Click on the Installation Type page to install to start the installation.
- After the installation has finished, click on the PyCharm IDE page and on the Summary page to close the installer.
Install on macOS (Apple)
Anaconda does not support Apple chips. Follow these steps to install Miniforge, a minimal version of Anaconda, on your Mac with an Apple chip:
- Download Miniforge3-MacOSX-arm64.sh.
- Open a terminal in the directory containing the installer.
- Run
bash Miniforge3-MacOSX-arm64.sh
to start the installer. - Press Enter to view the license terms, press Q to exit the license terms, and enter Yes to accept the license terms.
- Specify where Miniforge should be installed or accept the default.
- Enter Yes when the installer prompts whether you want the installer to initialize Miniforge.
- Re-open the terminal window after the installation has finished.
Install on Linux
Follow these steps to install Anaconda on your computer:
- Download the latest 64-bit (x86) Installer for Linux.
- Open a terminal in the directory containing the installer.
- Run
bash <fileName>
where<fileName>
is the name of the installer. - Press Enter to view the license terms, press Q to exit the license terms, and enter Yes to accept the license terms.
- Specify where Anaconda should be installed or accept the default.
- Enter Yes when the installer prompts whether you want the installer to initialize Anaconda.
- Re-open the terminal window after the installation has finished.