PYMC3安装一次成功在再无烦恼

PYMC3安装

# 在terminal里面安装,,只能用pip安装

pip install PyMC3==3.10.0
pip install Theano-pymc==1.0.11
pip install ArviZ==0.11.0
pip install --upgrade numpy==1.20.3
安装完可能没有g++complier,出现如下报错
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
C:\ProgramData\Anaconda3\lib\site-packages\theano\configdefaults.py:560: UserWarning: DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory
  warnings.warn("DeprecationWarning: there is no c++ compiler."
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
#输入以下指令
#1、在anaconda中的prompt中输入:
conda install m2w64-toolchain
#2、在安装好m2w64-toolchain后,接着输入:
conda install libpython
#在如下位置添加配置文件.theanorc.txt(自己创建txt文件,注意有个点(.)啊)
#系统盘/user/用户名(你自己取得名字)

#写入以下内容
[blas]
ldflags=-lblas
或着
[blas]
ldflags=-lmkl_rt 

你可能感兴趣的:(python,pycharm,深度学习)