Skip to content

Instantly share code, notes, and snippets.

@azhang
Created February 10, 2020 04:16
Show Gist options
  • Save azhang/1bdce2d0657a78ad5810e84b6fa2adba to your computer and use it in GitHub Desktop.
Save azhang/1bdce2d0657a78ad5810e84b6fa2adba to your computer and use it in GitHub Desktop.
quantconnect lean installation on mac
#!/bin/zsh
brew install anaconda
/usr/local/anaconda3/bin/conda init zsh
. ~/.zshrc
# create new conda env
conda create --name lean
conda activate lean
conda install python=3.6.6 wrapt=1.10.11 pandas numpy
git clone --depth 1 --branch master git@github.com:QuantConnect/Lean.git
cd Lean
msbuild QuantConnect.Lean.sln
echo "<?xml version="1.0" encoding="utf-8"?>
<configuration>
<dllmap dll="python3.6m" target="/usr/local/anaconda3/envs/lean/lib/libpython3.6m.dylib" os="!windows"/>
</configuration>" >! Launcher/bin/Debug/Python.Runtime.dll.config
# update Launcher/bin/Debug/config.json to use python algo
cd Launcher/bin/Debug/
mono QuantConnect.Lean.Launcher.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment