OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']解决办法
Ubuntu系统执行:
sudo apt-get install libgeos-dev
CentOS系统执行:
sudo yum install geos-devel
报错:Check the logs for full command output解决:
检查是否有这个驱动libpq-dev,如果没有
sudo apt-get install libpq-dev
ubuntu arm/arm64搭建和更改为国内源:
参考链接:ubuntu arm/arm64搭建和更改为国内源_汉文修士的博客-CSDN博客_arm ubuntu 国内源
ubuntu 18.04 for arm64:
华为源(强烈推荐,快)
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
## Not recommended
# deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
# deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
ARM64架构下安装Python package
安装h5py
在安装tensorflow的时候,需要h5py。h5py在arm64安装的时候会出错,如果出错了,可以尝试下面的方法:
sudo apt-get install libhdf5-dev
sudo apt install cython3
pip3 install h5py
安装scipy
安装scipy的时候可能报错,如果报错,安装以下的方式进行安装:
(1)先安装 gfortran,libopenblas-dev,liblapack-dev,安装命令如下:
sudo apt-get install gfortran libopenblas-dev liblapack-dev
(2)安装scipy
pip3 install scipy
安装scikit-learn
安装scikit-learn的时候,先安装numpy,scipy。如果安装出错,按照上面介绍的方式进行安装scipy。
ARM64的PyTorch和TensorFlow下载地址:
KumaTea (kumatea) - Gitee.com
|