LoginSignup
1
2

More than 5 years have passed since last update.

pyenvでpythonをインストールするときに必要なこと

Last updated at Posted at 2018-01-18

pyenvはpythonをインストールするとき依存ライブラリを解決してくれない,しかも場合によってはそのままインストールしてライブラリを使う段階で文句を言いだすので,事前にインストールするべきライブラリをメモしておく.
環境はubuntuなのでaptを使う.
python3の場合なので2だと違ったりするかも.

sudo apt-get -y install zlib1g libbz2-dev tk-dev libssl-dev libreadline-dev libsqlite3-dev libffi-dev

これで少なくとも警告やエラーは出ない.

追記
libffi-devを追加した.

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