PyMAPDLをインストールする.#

Python module#

The ansys.mapdl.core package currently supports Python 3.10 through Python 3.12 on Windows, Mac OS, and Linux.

以下のコマンドで PyPi から最新リリースをインストールします:

pip install ansys-mapdl-core

あるいは、以下のコマンドで PyMAPDL GitHub <pymapdl_issues>`_ から最新のものをインストールしてください:

pip install git+https://github.com/ansys/pymapdl.git

For a local development version, install with these commands:

git clone https://github.com/ansys/pymapdl.git
cd pymapdl
pip install -e .

開発版をインストールした後、ローカルで ansys-mapdl-core パッケージを変更し、Python カーネルを再起動すると変更がセットアップに反映されます。

Offline installation#

If you lack an internet connection on your installation machine, the recommended way of installing PyMAPDL is downloading the wheelhouse archive from the Releases page for your corresponding machine architecture.

各 wheelhouse アーカイブには、Windows と Linux に PyMAPDL をゼロからインストールするために必要な Python wheel がすべて含まれています。新しいPythonがインストールされた隔離されたシステムや仮想環境にインストールすることができます。

For example, on Linux with Python 3.10, unzip the wheelhouse archive and install it with these commands:

unzip PyMAPDL-v0.68.dev1-wheelhouse-Linux-3.10.zip wheelhouse
pip install ansys-mapdl-core -f wheelhouse --no-index --upgrade --ignore-installed

If you're on Windows with Python 3.10, unzip to a wheelhouse directory and install using the preceding command.

Consider installing using a virtual environment.

Verify your installation#

注釈

PyMAPDLを使用するには、Ansysがローカルにインストールされている必要があります。インストールされているAnsysのバージョンによって、使用できるインターフェイスや機能が異なります。

ANSYSのライセンスコピーの入手に関する詳細は、 Ansys をご覧ください。

モジュールをインポートして、パッケージが正しくインストールされていることを確認してください:

>>> from ansys.mapdl import core as pymapdl

For information on launching PyMAPDL and connecting it to an MAPDL instance, see:ref:ref_launch_pymapdl.