swig(pyrfr)
1
apt-get install swig --fix-missing
若提示
1
2
3
4Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package swig先更新源:
1
apt-get update
再安装swig。
lazy_import-0.2.2(auto-sklearn)
vim setup.py
1
with open('README.rst') as infile:
改为:
1
with open('README.rst', encoding='utf-8') as infile:
python setup.py install
升级cmake(xgboost)
下载源码https://github.com/Kitware/CMake/releases/download/v3.20.4/cmake-3.20.4.tar.gz
编译安装
1
2
3./boostrap
make
make install添加软连接
1
ln -s /usr/local/bin/cmake /usr/bin/cmake
查看
1
cmake --version
1
2
3
4root@3790ed27be82:~/cmake-3.20.4# cmake --version
cmake version 3.20.4
CMake suite maintained and supported by Kitware (kitware.com/cmake)
numpy==1.19.4
1.19.5暂时会有bug。报错
1
2>>> import numpy as np
Illegal instruction (core dumped)