https://www.jianshu.com/p/51b6f910d32c
主要是参考这个链接, 源代码编译安装, 依赖库提前安装好
git clone https://github.com/popgenmethods/smcpp.git
cd smcpp
make -j6
make install
smc++ -h
![](https://img.haomeiwen.com/i15434362/f9fafbb53414ef3e.png)
然后遇到了报错:
[Errno 2] No such file or directory: 'seaborn-ticks‘
OSError: 'seaborn-ticks' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in style.available
)
![](https://img.haomeiwen.com/i15434362/bcd69fa69335e3f9.png)
问题出在smc++内置的plotting.py的这一行代码:
matplotlib.style.use("seaborn-ticks")
这个脚本的全路径是/home/kuangzhr17/miniconda3/lib/python3.9/site-packages/smcpp/plotting.py
因为matplotlib并没有内置名为seaborn-ticks的样式,所以将原脚本中的这一行注释掉并且改为:
import seaborn as sns
sns.set()
![](https://img.haomeiwen.com/i15434362/d2f723ba71e12f77.png)
再次运行smc++ -h, 发现posterior.py也报了这个错
这个脚本的全路径是/home/kuangzhr17/miniconda3/lib/python3.9/site-packages/smcpp/commands/posterior.py
相同的处理
报错解决
网友评论