LoginSignup
3
1

More than 3 years have passed since last update.

機械学習ライブラリJAXのインストールで詰まった話

Last updated at Posted at 2020-10-29

JAXという機械学習ライブラリがpythonから使えると聞いたのでインストールしました
インストール時に詰まったところのメモです

pipを使ってJAXをインストールしようとしました

pip install jax jaxlib

最初にではエラーはこちら:

ValueError: jaxlib is version 0.1.23, but this version of jax requires version 0.1.37.

これはエラーメッセージの下の方に解決方法が書いてあるので,素直に実行します

pip install --upgrade pip
pip install --upgrade jax jaxlib

次に出たエラーはこちら:

AttributeError: module 'numpy' has no attribute 'histogram_bin_edges'

エラーメッセージからnumpyのエラーらしいので,numpyのupgradeをします

pip install --upgrade numpy

最後に出たエラーはこちら:

ModuleNotFoundError: No module named 'numpy.testing.decorators'

エラーメッセージの上の方を見るとnumpyではなくscipyのエラーらしいので,scipyのupgradeをします

pip install --upgrade scipy

これで動きました

3
1
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
3
1