Installation of Python¶
Pylake can be installed on Windows, Linux or Mac, with the following prerequisites:
If you’re already familiar with Python and have the above prerequisites, installing Pylake is just a simple case of using pip, Python’s usual package manager:
pip install lumicks.pylake
Alternatively, if you’re using Anaconda:
conda install lumicks.pylake -c conda-forge
If you are new to Python/SciPy, more detailed installation instructions are available below.
Anaconda¶
The easiest way to install Python and SciPy is with Anaconda, a free scientific Python distribution for Windows, Linux and Mac.
Windows
Go to the Anaconda website and download the Python 3.6 installer.
Run it and accept the default options during the installation.
Open
Anaconda Promptfrom theStartmenu. Enter the following command a press enter. This will enable theconda-forge:conda config --add channels conda-forge
Finally, enter the following command to install Pylake:
conda install lumicks.pylake
That’s it, all done. Check out the Tutorial for some example code and Jupyter notebooks to get started.
Linux
Go to the Anaconda website and download the Python 3.6 installer.
Open a terminal window and run:
bash Anaconda3-x.x.x-Linux-x86_64.sh
Follow the installation steps. You can accept most of the default values, but make sure that you type
yesto add Anaconda toPATH:Do you wish the installer to prepend the Anaconda3 install location to PATH in your /home/<user_name>/.bashrc ? [yes|no] [no] >>> yes
Now, close your terminal window and open a new one for the changes to take effect.
Next, enable
conda-forge:conda config --add channels conda-forge
Finally, install Pylake with the following command:
conda install lumicks.pylake
That’s it, all done. Check out the Tutorial for some example code and Jupyter notebooks to get started.
macOS
Go to the Anaconda website and download the Python 3.6 installer.
Run it and accept the default options during the installation.
Open
Terminaland run the following command to enableconda-forge:conda config --add channels conda-forge
Finally, install Pylake with the following command:
conda install lumicks.pylake
That’s it, all done. Check out the Tutorial for some example code and Jupyter notebooks to get started.
Updating¶
If you already have Pylake installed and you want to update to the latest version, just run:
conda update lumicks.pylake
Troubleshooting¶
If you run into any errors after installation, try updating all conda packages to the latest versions using the following command:
conda update --all