PyMAPDLをインストールする.#
Python module#
注釈
These instructions assume you are working on Windows/macOS/Linux and are familiar
with pip and the command line. If they are new to you, you should read
the Python Packaging User Guide Tutorial on pip <python_installing_packages>
before proceeding.
The ansys.mapdl.core package currently supports Python 3.10 through
Python 3.13 on Windows, macOS, and Linux.
Install the latest release from PyPi with this command on the command line, terminal, or in PowerShell:
pip install ansys-mapdl-core
Alternatively, install the latest release from PyMAPDL GitHub with this command:
pip install git+https://github.com/ansys/pymapdl.git
For a local development version, install with the following commands. If you are unfamiliar with git or do not have it installed, see the contributing to PyMAPDL guide <_developing_pymapdl> for more information.
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_launch_pymapdl.