栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

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

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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:ProgramDataAnaconda3libsite-packagestheanoconfigdefaults.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 
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/869168.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号