一、安装依赖包
sudo apt-get update -y
sudo apt-get install -y git build-essential python3-dev libglew-dev \
libpng-dev libfreetype6-dev libxml2-dev \
libmsgpack-dev python3-pyqt5.qtopengl libglm-dev libnetcdf-dev
二、下载源代码
如果下面两个下载命令使用不了的话,直接进入网址去下载,Download ZIP,下载后记得解压
git clone https://github.com/schrodinger/pymol-open-source.git
git clone https://github.com/rcsb/mmtf-cpp.git
cp -r mmtf-cpp/include/mmtf* pymol-open-source/include/
cd pymol-open-source
https://github.com/schrodinger/pymol-open-source
https://github.com/rcsb/mmtf-cpp
三、安装 pymol
mkdir $HOME/opt/pymol
prefix=$HOME/opt/pymol
python3 setup.py build install \
--home=$prefix
echo 'export PATH=$HOME/opt/pymol/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
四、运行 pymol
pymol