在Anaconda 3 / Win上安装PYMC3



此安装是一场噩梦!!!

使用:

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

一切都会导入,但是当我运行代码时,"螺母"的东西不会初始化...

不确定哪个过程对我有用,但这是我采取的步骤

  1. 重置我的整个笔记本电脑
  2. 重新下载WSL2
  3. 安装conda
  4. 转到此目录

path_to_your_python_env>/lib/site-packages/theano/misc/windows.py

  1. 删除或评论以后

params ['shell'] = true

  1. 即使它有效,编译器仍然非常慢

最新更新