The instructions below can be used to rebuild these files if so desired.
To install lpctools, follow the instructions on the lpctools repository readme: [https://github.com/bluecarrot16/lpctools]
However, if running on Windows, I HIGHLY recommend installing WSL first.
If you do not have Windows, feel free to jump to the miniconda installation instructions instead.
If running on windows, I highly recommend installing wsl. It makes the process much easier and you can use better commands for managing assets.
I used these instructions to install wsl: [https://kontext.tech/article/308/how-to-install-windows-subsystem-for-linux-on-a-non-c-drive]
These instructions install Ubuntu, but you can replace Ubuntu with other distros by clicking here.. Just remember to change the filename in the instructions below.
Steps:
- Open Powershell as Administrator
- Run the following commands:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
cd F:\
(replace F with drive letter)mkdir path\to\WSL
(path\to
can be whatever directory you want)cd path\to\WSL
(path\to
obviously should be whatever path you chose above)Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
to download Linuxmove .\Ubuntu.appx .\Ubuntu.zip
(rename Ubuntu)Expand-Archive .\Ubuntu.zip
(unpack linux)cd .\Ubuntu
.\ubuntu1804.exe
(installs ubuntu)- Enter new UNIX username (enter username for your wsl linux account)
- Enter new UNIX password (enter password)
- Now Ubuntu will be installed at
F:\path\to\WSL\Ubuntu
- The
wsl
command should now allow you to open wsl
The following instructions are my preferred method to install Miniconda.
You can simply install via the website, which is what lpctools recommends.
However, as I use Windows, I found wsl far more effective. These instructions wound up being more useful for me, and these are the instructions I will detail below.
- Open a console terminal
- On Windows:
- Open Powershell as Administrator
- Run
wsl
command
- On Windows:
- Run the following commands:
sudo apt-get update
sudo apt-get install wget
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh
sha256sum Miniconda3-py39_4.12.0-Linux-x86_64.sh
(validates checksum to ensure file is correct)sh ./Miniconda3-py39_4.12.0-Linux-x86_64.sh
(starts miniconda install)- hit "enter" key
yes
then hit "enter" key- hit "enter" again to install
yes
then hit "enter" key again
- Now exit the terminal and reopen again
- You should see the following when opening the terminal:
(base) root@COMPUTER-NAME:/mnt/DRIVE_LETTER
- The
(base)
at the start of the path indicates miniconda is installed and you are on the base environment.
- With this you can now move on to installing lpctools with miniconda.
Make sure to install miniconda first, regardless of method used.
- (You may follow the instructions here.)[https://github.com/bluecarrot16/lpctools]
- Find where on your hard drive you wish to install lpctools too
- Open a terminal
- If you are on windows, make sure to open wsl
- Run the following commands:
cd /path/to/install/directory/
(the path you decided to install lpctools at)git clone https://github.com/bluecarrot16/lpctools
cd lpctools
conda env create -f environment.yml
conda activate lpctools
pip install -e .
- This will install lpctools, allowing the lpctools environment in miniconda.
- To enable lpctools commands:
wsl
(if you are on windows, otherwise skip)- You should see
(base)
in the path as shown above. conda activate lpctools
(to enable lpctools commands)- When running the above command,
(base)
should now change to(lpctools)
- Now everything is set up so you can run lpctools.