github开源版pymol安装(ubuntu22.04实战版)

1. 克隆 PyMOL 的 GitHub 仓库

首先,你需要从 GitHub 克隆 PyMOL 的源代码:

bash 复制代码
git clone https://github.com/schrodinger/pymol-open-source.git
cd pymol-open-source

2. 安装依赖项

PyMOL 依赖一些系统库和 Python 包,确保先安装它们:

bash 复制代码
conda create -n pymol_env python=3.9
conda activate pymol_env
sudo apt install g++
conda install pip
conda install -c conda-forge glew freeglut libpng freetype libxml2
pip install openvr
conda install conda-forge::pmw
conda install conda-forge::msgpack-c
conda install conda-forge::glm
conda install conda-forge::catch2
conda install conda-forge::libnetcdf
conda install -c conda-forge pyqt
conda install numpy
sudo apt install python3-dev
sudo apt install libmsgpack-dev
sudo apt install libglew-dev

如果这个依赖装不上就先别装

bash 复制代码
sudo apt install libmmtf-dev
(pymol_env) xxx@xxx-ubuntu22:~/xxx/pymol-open-source$ sudo apt install libmmtf-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
E: 无法定位软件包 libmmtf-dev

这个包需要源码编译安装

bash 复制代码
git clone https://github.com/rcsb/mmtf-cpp.git
cd mmtf-cpp/
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make
sudo make install

3.安装

在pymol-open-source中运行

bash 复制代码
python setup.py install

这个pymol还支持迁移到其他系统中,比如我就从ubuntu22.04迁移到了24.04,打包好环境+重装一些apt装的依赖+源编码的要重新编码!!!

相关推荐
KING-WU5122 小时前
Linux GDB 调试实战指南:从编译到断点调试
linux·运维·服务器
Lucis__2 小时前
深入理解程序链接与加载—从动静态链接到库加载
linux·elf·链接·程序·动静态库
影视飓风TIM2 小时前
Linux 进程信号原理与剖析
linux·运维·服务器
缘友一世2 小时前
开源 Linux截图工具闪构(SnapForge)
linux·运维·ubuntu·开源·截图
空空dream3 小时前
Github | 初始化空白仓库到首次推送
github
朱包林3 小时前
iTerm2终端配置指南
linux·javascript·python·云原生·容器·kubernetes·云计算
高频因子挖掘机4 小时前
A股分钟K线数据占内存:先缩小请求范围,还是换 DataFrame 工具?
后端·github·api
祖力554 小时前
Linux系统移植、烧录与环境的搭建
linux·运维·服务器
张小姐的猫5 小时前
【Linux】网络编程 —— 多路转接:epoll
linux·运维·网络