LoginSignup
5
3

docker(88) pip入門

Last updated at Posted at 2018-04-10

dockerの素のubuntuにpipを導入する場合

python2 は
Installing with get-pip.py
https://pip.readthedocs.io/en/stable/installing/

という方法をよく用いた。

docker/ubuntu
# apt update; apt -y upgrade
# apt install python2.7 python3.8 curl vim
# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# python2.7 get-pip.py
# pip install update
# apt install  python3-pip
# pip3 install update

python2のpipもapt install python-pip でも入るらしい。

Ubuntuにpip/pip3をインストールする
https://pcl.solima.net/pyblog/archives/57

# apt install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpython-all-dev libpython-dev libpython-stdlib libpython2.7
  libpython2.7-dev python python-all python-all-dev python-asn1crypto
  python-cffi-backend python-crypto python-cryptography python-dbus python-dev
  python-enum34 python-gi python-idna python-ipaddress python-keyring
  python-keyrings.alt python-minimal python-pkg-resources python-secretstorage
  python-setuptools python-six python-wheel python-xdg python2.7-dev
Suggested packages:
  python-doc python-tk python-crypto-doc python-cryptography-doc
  python-cryptography-vectors python-dbus-dbg python-dbus-doc
  python-enum34-doc python-gi-cairo gnome-keyring libkf5wallet-bin
  gir1.2-gnomekeyring-1.0 python-fs python-gdata python-keyczar
  python-secretstorage-doc python-setuptools-doc
The following NEW packages will be installed:
  libpython-all-dev libpython-dev libpython-stdlib libpython2.7
  libpython2.7-dev python python-all python-all-dev python-asn1crypto
  python-cffi-backend python-crypto python-cryptography python-dbus python-dev
  python-enum34 python-gi python-idna python-ipaddress python-keyring
  python-keyrings.alt python-minimal python-pip python-pkg-resources
  python-secretstorage python-setuptools python-six python-wheel python-xdg
  python2.7-dev
0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.5 MB of archives.
After this operation, 54.9 MB of additional disk space will be used.

参考資料(reference)

pip について
https://qiita.com/shinno21/items/93c4e379032edb1d6771

DistributionNotFoundと言われた時のpip, distribute更新の注意点
https://qiita.com/HidKamiya/items/619ca56cee9a5005d5c4

macOS Sierra で pip install したときに Permisson denied になった
https://qiita.com/thrakt/items/994b38e7b5e6ce809de8

Macでpipのupgradeをしました。
https://qiita.com/pugiemonn/items/f0de8944688c825dca5e

pipでgithubの特定ブランチのやつをインストール
https://qiita.com/yasunori/items/2b64e95ed87c71feaaae

オフライン環境にPythonのパッケージをpipで持ち込みたい
https://qiita.com/ryozi_tn/items/d08edf86dba5e7806da8

pip install cupyでエラーが出た
https://qiita.com/kaizen_nagoya/items/19a66d86cd7eaf733a3e

文書履歴(document history)

ver. 0.01 初稿 20180411
ver. 0.02 docker加筆 20191230

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3