インストール

事前準備

開発者からソースディストリビューション 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: nbformat>=4.2.0 in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (5.10.4)
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: plotly in /opt/build/repo/.venv/lib/python3.12/site-packages (from psiclone==0.4.2) (6.5.2)
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: fastjsonschema>=2.15 in /opt/build/repo/.venv/lib/python3.12/site-packages (from nbformat>=4.2.0->psiclone==0.4.2) (2.21.1)
Requirement already satisfied: jsonschema>=2.6 in /opt/build/repo/.venv/lib/python3.12/site-packages (from nbformat>=4.2.0->psiclone==0.4.2) (4.23.0)
Requirement already satisfied: jupyter-core!=5.0.*,>=4.12 in /opt/build/repo/.venv/lib/python3.12/site-packages (from nbformat>=4.2.0->psiclone==0.4.2) (5.7.2)
Requirement already satisfied: traitlets>=5.1 in /opt/build/repo/.venv/lib/python3.12/site-packages (from nbformat>=4.2.0->psiclone==0.4.2) (5.14.3)
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: narwhals>=1.15.1 in /opt/build/repo/.venv/lib/python3.12/site-packages (from plotly->psiclone==0.4.2) (2.16.0)
Requirement already satisfied: attrs>=22.2.0 in /opt/build/repo/.venv/lib/python3.12/site-packages (from jsonschema>=2.6->nbformat>=4.2.0->psiclone==0.4.2) (24.2.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/build/repo/.venv/lib/python3.12/site-packages (from jsonschema>=2.6->nbformat>=4.2.0->psiclone==0.4.2) (2024.10.1)
Requirement already satisfied: referencing>=0.28.4 in /opt/build/repo/.venv/lib/python3.12/site-packages (from jsonschema>=2.6->nbformat>=4.2.0->psiclone==0.4.2) (0.35.1)
Requirement already satisfied: rpds-py>=0.7.1 in /opt/build/repo/.venv/lib/python3.12/site-packages (from jsonschema>=2.6->nbformat>=4.2.0->psiclone==0.4.2) (0.22.3)
Requirement already satisfied: platformdirs>=2.5 in /opt/build/repo/.venv/lib/python3.12/site-packages (from jupyter-core!=5.0.*,>=4.12->nbformat>=4.2.0->psiclone==0.4.2) (4.3.6)
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=1288348 sha256=e70f0a3cef24303b70a6cc7cde4c26512c3720a5645d08d0b0187e5cfec06e9b
  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, nbformat, networkx, numpy, plotly, scipy
Required-by: 
Note: you may need to restart the kernel to use updated packages.