此安装是一场噩梦!
使用:
conda install -c conda-forge pymc3
将无法正常工作。
然后我尝试首先安装theano(及其依赖项),发现它与python = 3.5而不是3.6一起工作的困难方式。
# Install theano reqirements
conda install numpy scipy mkl-service libpython m2w64-toolchain
# Install theano
conda install theano pygpu
# You are using a different python version (3.5) from the base installation,
# you must point to the right kernel for Jupyter:
conda install ipykernel
python -m ipykernel install --user
# Install & test on jupyter, spyder
conda install jupyter spyder qt
# Install PyMC3
pip install pymc3
一切都导入了,但是当我运行代码时,'NUTS'不会初始化...
答案 0 :(得分:0)
不确定哪个过程适合我,但这是我采取的步骤
path_to_your_python_env>/Lib/site-packages/theano/misc/windows.py
params['shell'] = True