LoginSignup
0
1

More than 3 years have passed since last update.

Python 入れ直しになる原因(yumの場合の解決策)

Last updated at Posted at 2021-02-12

背景

pyenv を使って Python を入れて使っているのですが、いざ始めようとすると警告やエラーが出て Python の入れ直しになるケースが多発しているので、対応策をまとめておきます。

試した環境は CentOS7 です。

コマンド

# pandas で Could not import the lzma module という警告が出る
$ sudo yum install -y xz-devel

# pip install で No module named '_ctypes' というエラーが出る
$ sudo yum install -y libffi-devel
# Python の入れ直しも
# 3.9.1 の場合
$ pyenv uninstall 3.9.1
$ pyenv install 3.9.1

その他

適宜追加していきます。

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