LoginSignup
1
1

More than 5 years have passed since last update.

地味なpipですみません。(訳:kerasがinstallできないのでなんとかした話)

Posted at

前書き

こちら【iOS11】CoreMLを試してみた【深層学習】の記事を参考にYoloをiPhoneにインストールしようとしたらエラーが出たので、忘備録として記載しておきます。

開発環境

機種名 : MacBook Pro
OS : Mojave 10.14.4
プロセッサ名 : Intel Core i5 2.6 GHz
メモリ : 16 GB
グラフィック : Intel Iris 1536MB

iOS 12.2

本題

pip3 install keras==1.2.2ができない

普段使いのiTerm2でpipコマンドを叩いたのがこちら。

# zsh
% sudo pip3 install keras==1.2.2
zsh: 1.2.2 not found

zshだからだめ?

bashに切り替えて、installしてみる

% cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/zsh

% chsh -s /etc/bash

% sudo pip3 install keras==1.2.2
Collecting keras==1.2.2
  Downloading https://files.pythonhosted.org/packages/75/3e/9926ce5c678b7a7978724a2ecf24857d89a415d152b8d3443e6d45c228b2/Keras-1.2.2.tar.gz (175kB)
    100% |████████████████████████████████| 184kB 6.8MB/s 
Collecting theano (from keras==1.2.2)
・・・・
Successfully installed keras-1.2.2 numpy-1.16.2 pyyaml-5.1 scipy-1.2.1 theano-1.0.4

感想

bashに切り替えたらうまくいった。
shellが原因というより、おそらく.zshrcとかに設定しているaliasが悪いのかもしれない。

時間があれば、深く調べてみます。

関連URL

コピーメカ

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