2
1

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 1 year has passed since last update.

pyenv内でのpipのセグフォエラー対処法

Posted at

実行環境

  • OS: Ubuntu20.04
  • pyenv 3.6.9

pyenv内でpip install時のエラー

pyenv内でpip installする際に下記のエラーが発生。

コード実行内容とerror内容
$ pip install {package}

/home/${username}/.pyenv/pyenv.d/exec/pip-rehash/pip: line 20: 143005 Segmentation fault      (core dumped) "$PYENV_COMMAND_PATH" "$@"

解決策

$ sudo apt install clang -y
$ CC=clang pyenv install 3.6.9

として, pyenvのpython3.6.9環境を入れ直すと上記エラーが出なくなる.

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?