一.换源(阿里云)
打开终端输入
sudo zypper mr -da
继续输入:
sudo zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/42.2/non-oss/ openSUSE-42.2-Update-Non-Oss
sudo zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/oss/ openSUSE-42.2-Oss
sudo zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/non-oss/ openSUSE-42.2-Non-Oss
sudo zypper addrepo -f http://mirrors.aliyun.com/packman/openSUSE_Leap_42.2/ openSUSE-42.2-packman
然后更新并启用:
sudo zypper ref
sudo zypper up
二.给python3安装numpy,scipy,matplotlib
打开终端,进入(root)(su)输入
zypper install python3-matplotlib
zypper install python3-numpy
zypper install python3-scipy
在终端输入python3
继续输入
import numpy
import scipy
import matplotlib
如果在终端不报错的话,就证明安装成功。