Created
February 10, 2020 04:16
-
-
Save azhang/1bdce2d0657a78ad5810e84b6fa2adba to your computer and use it in GitHub Desktop.
quantconnect lean installation on mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected]: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