Skip to content

Instantly share code, notes, and snippets.

@kengz
Last active December 11, 2020 02:56
Show Gist options
  • Save kengz/eb48d8b3b017c3f291158de7dedbcd3d to your computer and use it in GitHub Desktop.
Save kengz/eb48d8b3b017c3f291158de7dedbcd3d to your computer and use it in GitHub Desktop.
SLM Lab quick installation

See https://kengz.gitbooks.io/slm-lab/content/installation/installation.html for full instruction.

  1. Clone SLM-Lab
git clone https://github.com/kengz/SLM-Lab.git
cd SLM-Lab
  1. Install node, yarn, electron and orca for the environment and analysis module
brew install node yarn
yarn install

And if you don't already have it, install Conda for clean dependency management

curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh -b
rm Miniconda3-latest-MacOSX-x86_64.sh
echo '. ~/miniconda3/etc/profile.d/conda.sh' >> ~/.bash_profile
source ~/.bash_profile
  1. Install SLM Lab as pip module
conda create -n lab python=3.6 ipykernel -y
conda activate lab
conda env update -f environment.yml

Now it is ready for usage.

@pappataci
Copy link

pappataci commented Jan 24, 2020

I am going through the book and I love it; but I would like to use SLM Lab: since I need pythonnet I cannot use conda, have to use pip; furthermore I am under windows 10 (Pro). Any advice on how to install for Win?
Since my environment is provided by interoperability with F# (.NET) a virtual machine running Linux, under Windows, does not seem an option. Again, congrats for the book.

PS: I have installed Git for windows and can clone your repository: so I have accomplished the first step; but then I am stuck; also I use Python 3.7.6 64-bit and torch 1.4.0. Thanks

@kengz
Copy link
Author

kengz commented Jan 25, 2020

Hi @pappataci thanks! You have a few options, however they have not been tested. There's also a chance that some of the dependencies do not support Windows. Nevertheless, you can try any of the following options:

  1. use Conda for Windows: https://docs.conda.io/projects/conda/en/latest/user-guide/install/windows.html and the dependencies should resolve themselves correctly for Windows
  2. use a Linux subsystem for Windows https://docs.microsoft.com/en-us/windows/wsl/install-win10
  3. use pip by manually installing all the dependencies listed in the environments.yml

Let me know how it goes, and other readers on Windows may benefit too.

@kengz
Copy link
Author

kengz commented Jan 25, 2020

btw, this doc snippet is a bit out of date. I would recommend checking the latest doc at https://slm-lab.gitbook.io/slm-lab/setup/installation

@pappataci
Copy link

Hi @kengz. Thanks a lot for your kind reply; I will give a go to method 3 and see what happens.

@gvkcampos
Copy link

Has anyone had any luck installing this on windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment