LoginSignup
0
1

More than 5 years have passed since last update.

pyenvでpipを使おうとするとUndefined errorが出るときの対処法

Last updated at Posted at 2017-05-21

久々にpythonを使おうと、いつものようにpyenvを利用して始めたわけですが、
あるパッケージを入れるためにpipコマンドを入力したら

/usr/local/Cellar/pyenv/20141211/libexec/pyenv-exec: line 47: /Users/username/.pyenv/versions/3.4.2/bin/pip: Undefined error: 0

なんてエラーが出たのでその対処法。

環境

OS X Yosemite 10.10.5
brewを利用

対処法

homebrewpyenvをアップデートし、
すでに入っているpythonのバージョンをuninstallinstallすることで直りました。

pyenv uninstall バージョン名
pyenv install バージョン名

pyenvのアップデートは別にしなくてもいけるかもしれないです。

uninstallをせずにinstallだけで再インストールしますと直りませんでした。

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