インストール

事前準備

開発者からソースディストリビューション psiclone-0.4.2.tar.gz を受け取ります

pip による仮想環境へのインストール

以下の psiclonepip を介してインストールすることができます

pip install ./psiclone-0.4.2.tar.gz 

pip によるノートブック実行カーネルに対するインストール

Jupyter Notebook や Google Colab などのノートブック環境では、以下の %pip コマンドを使用して、現在のカーネルが使用している Python 環境にパッケージをインストールすることができます。

%pip install ./psiclone-0.4.2.tar.gz
Processing ./psiclone-0.4.2.tar.gz
  Installing build dependencies ... - \ | done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: matplotlib in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (3.9.4)
Requirement already satisfied: msgpack in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (1.1.0)
Requirement already satisfied: networkx in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (3.4.2)
Requirement already satisfied: numpy>=1.25 in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (2.2.0)
Requirement already satisfied: scipy in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (1.14.1)
Requirement already satisfied: contourpy>=1.0.1 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (1.3.1)
Requirement already satisfied: cycler>=0.10 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (4.55.3)
Requirement already satisfied: kiwisolver>=1.3.1 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (1.4.7)
Requirement already satisfied: packaging>=20.0 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (24.2)
Requirement already satisfied: pillow>=8 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (11.0.0)
Requirement already satisfied: pyparsing>=2.3.1 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (3.2.0)
Requirement already satisfied: python-dateutil>=2.7 in /opt/build/repo/.venv/lib/python3.12/site-packages (from matplotlib->psiclone==0.4.2) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in /opt/build/repo/.venv/lib/python3.12/site-packages (from python-dateutil>=2.7->matplotlib->psiclone==0.4.2) (1.17.0)
Building wheels for collected packages: psiclone
  Building wheel for psiclone (pyproject.toml) ... done
  Created wheel for psiclone: filename=psiclone-0.4.2-py3-none-any.whl size=1281069 sha256=549f2abeaa7997f8c1f23a6c41b9b8c1d8c2755f48bf7d10be690689cf95bdf5
  Stored in directory: /opt/buildhome/.cache/pip/wheels/20/09/01/d18074fe43d28106e2c99ca80dac68405a30f4b051d5d490e4
Successfully built psiclone
Installing collected packages: psiclone
  Attempting uninstall: psiclone
    Found existing installation: psiclone 0.4.2
    Uninstalling psiclone-0.4.2:
      Successfully uninstalled psiclone-0.4.2
Successfully installed psiclone-0.4.2
Note: you may need to restart the kernel to use updated packages.

バージョンなどのメタデータは以下のように確認できます

%pip show psiclone
Name: psiclone
Version: 0.4.2
Summary: Toolbox for Topological Flow Data Analysis using COT Representations
Home-page: https://github.com/t-uda/psiclone
Author: Tomoki Uda
Author-email: uda0@sci.u-toyama.ac.jp
License: MIT
Location: /opt/build/repo/.venv/lib/python3.12/site-packages
Requires: matplotlib, msgpack, networkx, numpy, scipy
Required-by: 
Note: you may need to restart the kernel to use updated packages.