0
0

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 3 years have passed since last update.

WSLでUbuntsuが動いてるけど、python3.7.1にしたい

Posted at

はじめに

作業のメモです。
どなたかの参考になれば。

参考サイト

Windows10(WSL)で、2018年的Pythonプロジェクト(①pyenv/pipenvの導入)

pyenvを入れる

git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc

ライブラリを入れる

次の手順のトライ&エラーでした

sudo apt -y install libzip-dev
sudo apt -y install libffi-dev

pyenvでpythonを入れる

$ pyenv install 3.7.1
Downloading Python-3.7.1.tar.xz...
-> https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
Installing Python-3.7.1...
Installed Python-3.7.1 to /home/yama/.pyenv/versions/3.7.1

pyenvで切り替え

$ pyenv global 3.7.1
$ python --version
Python 3.7.1
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?