はじめに#
インストール#
Qiskit Finance depends on Qiskit, which has its own Qiskit Getting Started detailing the installation options and its supported environments/platforms. You should refer to that first. Then the information here can be followed which focuses on the additional installation specific to Qiskit Finance.
The simplest way to get started is to first follow the getting started 『Start locally』 guide for Qiskit
In your virtual environment, where you installed Qiskit, install Qiskit Finance as follows:
pip install qiskit-finance
注釈
As Qiskit Finance depends on Qiskit, you can though simply install it into your environment, as above, and pip will automatically install a compatible version of Qiskit if one is not already installed.
ソースから Qiskit Financeをインストールすることにより、Python Package Index (PyPI) リポジトリーのバージョンを使う代わりに、最新の Qiskit バージョンにアクセスすることができます。これにより、Qiskit Financeコードの最新版を調査したり、拡張することがより効果的にできるようになります。
Qiskit Financeは Qiskit に依存しており、最新の変更が Qiskit の新規機能または変更された機能を必要とする場合があるので、まず「 Qiskit はじめに 」の 「ソースからのインストール」 の指示に従ってください。
Installing Qiskit Finance from Source
Qiskit をインストールしたものと同じ開発環境を使用して、 Qiskit Financeをインストールすることができます。
Qiskit Financeリポジトリーをクローンします。
git clone https://github.com/qiskit-community/qiskit-finance.git
リポジトリーをクローンすると、``qiskit-finance``という名前のローカル・フォルダが作成されます。
cd qiskit-finance
もし、テストを実行したり文法をチェックしたい場合は、開発者向けライブラリーをインストールします。
pip install -r requirements-dev.txt
Install
qiskit-finance
.pip install .
編集可能モード(プロジェクトのコードを変更しても再インストールする必要なし) でインストールする場合は、次の手順を実行します:
pip install -e .