Category WEB Tips Update 2019.01.06
Pyenvでよく使用するコマンドの一覧
python --version
which python
pyenv versions
pyenv global 3.6.1
pyenv global xxxにて切り替え
pyenv install -l
pyenv install 3.6.1
pyenv install xxxにてインストール
pyenv uninstall 3.6.1
pyenv uninstall xxxにてアンインストール
brew install readline openssl xz
~/.env-exporterに追記(存在しなければ新規で)
# ~/.env-exporter # about zlib export CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" # about readline export CFLAGS="-I$(brew --prefix readline)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix readline)/lib $LDFLAGS" # about openssl export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS" # about SQLite (maybe not necessary) export CFLAGS="-I$(brew --prefix sqlite)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix sqlite)/lib $LDFLAGS"
一度再読み込み
source ~/.env-exporter
再度インストール
CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install -v 3.6.x
or
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.6.x
sudo apt-get install python3-tk sudo apt install tk-dev