首先创建一个新环境,我是创建的3.5,你可以创建3.6,3.7,反正版本别太高。
conda create -n env_zipline python=3.5
conda activate env_zipline
安装编译器
conda install libpython m2w64-toolchain -c msys2
安装依赖
conda install numpy cython -c conda-forge
继续安装依赖:
conda install matplotlib scipy pandas -c conda-forge
安装pystan:
pip install pystan
如果遇到报错如下:
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pystan/: There was a problem confirming the ssl certificate: [SSL: CERTIF