1
0

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 5 years have passed since last update.

Ubuntu16.04+RでKerasのインストール

Last updated at Posted at 2019-12-25

はじめに

ぐぐったらそこそこ記事出てくるのに引っかかってしまったので書きました。

環境

  • Ubuntu16.04
  • R version 3.6.2

問題

ここにKerasのインストール方法が書いてあるのにRのコンソールに
devtools::install_github("rstudio/keras") library(keras) install_keras()
を打ってもうまくいかない。

原因と解決法

こういう時に冷静にエラーメッセージ見るのってすごく大事ですよね(自戒の意味を込めて)
エラーメッセージは以下のようになってました。

’devtools’ という名前のパッケージはありません

devtoolsが入っていないだけのようです(恥ずかしすぎる)
というわけで、以下のコマンドでdevtoolsをインストールして解決しました。

install.packages("devtools")

もう一度
devtools::install_github("rstudio/keras") library(keras) install_keras()
を打ち込むときっちり動くと思います。

今度は、チュートリアルでもやってみたいと思います。

どうでもいいですけど、install_keras()打ったらMiniConda入れろって言われるのなんか理不尽感じませんでした?笑
PythonじゃなくてRでやってる意味…

1
0
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?