ubuntu16.04 install SMAC

SMAC is an open source hyper-parameter tuning tool based on Bayesian optimization. github is here . Today I will talk about how to install
it on ubuntu16.04. First, if the system python3 is python3.5.2 (default), then at this time I want to install smac in the last step and an error will be reported! ! ! So, you need to install a python3.7 (Can 3.6 work? It is not recommended, because there is a problem in github issue that 3.6 can't run and 3.7 has no problems, in case you encounter it later), if you have not installed it, please move here first
Then there are a lot of things to install, so it is recommended to change the pip source first, otherwise you have to wait for a long time

$ vi ~/.pip/pip.conf 
# 没有就新建一个
# 这个文件修改如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

then

$ sudo apt-get install build-essential swig
$ curl https://raw.githubusercontent.com/automl/smac3/master/requirements.txt | xargs -n 1 -L 1 pip3 install
$ pip3 install smac

It's that simple, in fact, the main reason is to remind you to install Python3.7 ^_^

Guess you like

Origin blog.csdn.net/Fei20140908/article/details/88169612