CONTENTS


Lastmodified 2023-11-29 (水) 11:45:47


PIP

https://camp.trainocate.co.jp/magazine/python-pip/

# portinstall devel/py-pip
# pip -V
pip 23.3.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
# pip list -o
Package                       Version Latest       Type
----------------------------- ------- ------------ -----
build                         0.10.0  1.0.3        wheel
ConfigArgParse                1.5.3   1.7          wheel
cryptography                  41.0.5  41.0.7       sdist
Cython                        0.29.36 3.0.6        wheel
docutils                      0.19    0.20.1       wheel
# pip install "cryptography==41.0.7"
# pip install "cryptography==41.0.7"
Collecting cryptography==41.0.7
  Downloading cryptography-41.0.7.tar.gz (630 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 630.9/630.9 kB 3.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/site-packages (from cryptography==41.0.7) (1.16.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.12->cryptography==41.0.7) (2.21)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (pyproject.toml) ... done
  Created wheel for cryptography: filename=cryptography-41.0.7-cp39-cp39-freebsd_13_2_release_amd64.whl size=1291329 sha256=6e8eb411483b59869174d6988aec884432d9df7fe444a52627466fadf41d5397
  Stored in directory: /root/.cache/pip/wheels/3f/e7/55/64f1c9af5e386977be9c9f8ca1c6e615648dbf0e56dd4d38f9
Successfully built cryptography
Installing collected packages: cryptography
  Attempting uninstall: cryptography
    Found existing installation: cryptography 41.0.5
    Uninstalling cryptography-41.0.5:
      Successfully uninstalled cryptography-41.0.5
Successfully installed cryptography-41.0.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

この状態だと、まだ、pkg info には cryptography-41.0.5 がリストアップされている。


# pip list
----------------------------- ----------
acme                          2.7.4
alabaster                     0.7.13
Babel                         2.13.1
beautifulsoup4                4.12.2
build                         0.10.0
calver                        2022.6.26
certbot                       2.7.4
certifi                       2023.11.17
cffi                          1.16.0
charset-normalizer            3.3.2
click                         8.1.7
click-default-group           1.2.4
ConfigArgParse                1.5.3
configobj                     5.0.8
cryptography                  41.0.7      ← これ
Cython                        0.29.36
distro                        1.8.0

不要になったライブラリは、以下のコマンドでアンインストールします。

# pip uninstall cryptography
Found existing installation: cryptography 41.0.7
Uninstalling cryptography-41.0.7:
  Would remove:
    /usr/local/lib/python3.9/site-packages/cryptography-41.0.7.dist-info/*
    /usr/local/lib/python3.9/site-packages/cryptography/*
Proceed (Y/n)? y
 Successfully uninstalled cryptography-41.0.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Total access 222:本日 1:昨日 0

Counter: 222, today: 1, yesterday: 0

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-11-29 (水) 11:45:47