Created
July 11, 2023 10:05
-
-
Save nezuppo/cc08fc59ab01fb91ad5a544185ef70cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirements.txt に記載されたパッケージが依存するパッケージ一覧を取得 | |
参考にしたページ | |
https://dev.classmethod.jp/articles/python-pipdeptree_licenses/ | |
とりあえず docker コンテナの中でやってみてます | |
$ sudo apt install python3-pip | |
$ sudo apt install python3-venv | |
$ mkdir test-pypi | |
$ cd test-pypi/ | |
$ python3 -m venv venv | |
$ pip list | |
Package Version | |
---------- ------- | |
pip 22.0.2 | |
setuptools 59.6.0 | |
$ cat <<EOF > requirements.txt | |
numpy | |
matplotlib | |
gpxpy | |
python-ffmpeg | |
geopandas | |
descartes | |
contextily | |
pandas | |
EOF | |
$ pip install -r requirements.txt | |
$ pip list | |
Package Version | |
------------------ ----------- | |
affine 2.4.0 | |
attrs 23.1.0 | |
certifi 2023.5.7 | |
charset-normalizer 3.2.0 | |
click 8.1.4 | |
click-plugins 1.1.1 | |
cligj 0.7.2 | |
contextily 1.3.0 | |
contourpy 1.1.0 | |
cycler 0.11.0 | |
descartes 1.1.0 | |
Fiona 1.9.4.post1 | |
fonttools 4.40.0 | |
geographiclib 2.0 | |
geopandas 0.13.2 | |
geopy 2.3.0 | |
gpxpy 1.5.0 | |
idna 3.4 | |
joblib 1.3.1 | |
kiwisolver 1.4.4 | |
matplotlib 3.7.2 | |
mercantile 1.2.1 | |
numpy 1.25.1 | |
packaging 23.1 | |
pandas 2.0.3 | |
Pillow 10.0.0 | |
pip 22.0.2 | |
pyee 11.0.0 | |
pyparsing 3.0.9 | |
pyproj 3.6.0 | |
python-dateutil 2.8.2 | |
python-ffmpeg 2.0.4 | |
pytz 2023.3 | |
rasterio 1.3.8 | |
requests 2.31.0 | |
setuptools 59.6.0 | |
shapely 2.0.1 | |
six 1.16.0 | |
snuggs 1.4.7 | |
typing_extensions 4.7.1 | |
tzdata 2023.3 | |
urllib3 2.0.3 | |
xyzservices 2023.5.0 | |
ただし、pip と setuptools は最初からインストールされていただけなのか、依存関係があるのかは不明 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment