0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

pipで依存関係を含めてまとめてアップグレードする

Last updated at Posted at 2021-01-07

はじめに

多数の(相互)依存ライブラリから構成されているPythonライブラリで、一つだけアップグレードしてしまうとライブラリ間でバージョンが異なってうまく動かなくなってしまう場合があります。
そのため、依存関係も含めて一気にアップグレードしたい場合があります。

方法

依存ライブラリも含めて一気にアップグレードする方法

pip install --upgrade --upgrade-strategy eager <パッケージ名>

※逆に必要でない限り依存ライブラリをアップグレードしたくない場合は

pip install --upgrade --upgrade-strategy only-if-needed <パッケージ名>

とします。

参考

https://docs.microsoft.com/ja-jp/python/api/overview/azure/ml/install?view=azure-ml-py
https://www.it-swarm-ja.tech/ja/python/pip%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E4%BE%9D%E5%AD%98%E9%96%A2%E4%BF%82%E3%82%92%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%81%9B%E3%81%9A%E3%81%AB%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%92%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%81%97%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F/969608431/

0
4
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
0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?