Windows での OpenMM のインストールでは,公式のページでは conda を使うようになっているが, ここでは,ソースコードを用いたインストールの手順を説明する.
(個人的には,conda は運用しにくい印象があります.そのため,conda を使わずにインストールする手順を説明しています).
Windows での Git のインストール: 別ページ »で説明
【関連する外部ページ】
Git の公式ページ: https://git-scm.com/
Windows での cmake のインストール: 別ページ »で説明
【関連する外部ページ】
cmake の公式ダウンロードページ: https://cmake.org/download/
sourceforge の SWIGWINのウェブページ: https://sourceforge.net/projects/swig/files/swigwin/
Doxygen のダウンロードのページ: https://www.doxygen.nl/download.html
Windows での Python 3.10,関連パッケージ,Python 開発環境のインストール: 別ページ »で説明
【サイト内の関連ページ】
Python のまとめ: 別ページ »にまとめ
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
Windows での Build Tools for Visual Studio 2022,NVIDIA ドライバ,NVIDIA CUDA ツールキット 11.8,NVIDIA cuDNN v8.6 のインストールと動作確認: 別ページ »で説明
【関連する外部ページ】
OpenMM の GitHub のページ: https://github.com/openmm/openmm
cmake のオプションの 「Visual Studio 17 2022」のところは, 使用する Visual Studio のバージョンにあわせること. Visual Studio 2022 のときは,「Visual Studio 17 2022」. Visual Studio 2019 のときは,「Visual Studio 16 2019」
C: cd %HOMEPATH% rmdir /s /q openmm git clone https://github.com/openmm/openmm cd openmm rmdir /s /q build mkdir build cd build del CMakeCache.txt cmake .. -G "Visual Studio 17 2022" -A x64 -T host=x64 ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_INSTALL_PREFIX="C:/openmm" cmake --build . --config RELEASE cmake --build . --config RELEASE --target INSTALL
エラーメッセージが出ていないことを確認
コマンドプロンプトを管理者として実行: 別ページ »で説明
call powershell -command "$oldpath = [System.Environment]::GetEnvironmentVariable(\"Path\", \"Machine\"); $oldpath += \";c:\openmm\lib\"; [System.Environment]::SetEnvironmentVariable(\"Path\", $oldpath, \"Machine\")"
コマンドプロンプトを管理者として実行: 別ページ »で説明
call powershell -command "[System.Environment]::SetEnvironmentVariable(\"OPENMM_INCLUDE_PATH\", \"c:\openmm\include\", \"Machine\")" call powershell -command "[System.Environment]::SetEnvironmentVariable(\"OPENMM_LIB_PATH\", \"c:\openmm\lib\", \"Machine\")"
コマンドプロンプトを管理者として実行: 別ページ »で説明
call powershell -command "[System.Environment]::SetEnvironmentVariable(\"OPENMM_ROOT\", \"c:\openmm\", \"Machine\")"
cd %HOMEPATH% cd openmm\build\python python setup.py build python setup.py install
エラーメッセージが出ていないことを確認
エラーメッセージが出ていないことを確認
python -m openmm.testInstallation
まず,次のコマンドを実行
cd c:\openmm cd examples python
次のページに記載のサンプルプログラムを実行.
http://docs.openmm.org/latest/userguide/application/02_running_sims.html
エラーメッセージが出ていないことを確認
PDBFixer の GitHub のページ: https://github.com/openmm/pdbfixer
C: cd %HOMEPATH% rmdir /s /q pdbfixer git clone https://github.com/openmm/pdbfixer cd pdbfixer python setup.py build python setup.py install
エラーメッセージが出ていないことを確認