2018/03/10

[WSL] Ubuntu と python 導入

Ubuntu インストール

1. Windows Store から Ubuntu インストール
2. unix ユーザー名、パスワード設定
3. sudo apt-get update
4. sudo apt-get upgrade

初期インストールされているのは python3 のみ
$ which python3
/usr/bin/python3
$ python
The program 'python' can be found in the following packages:
* python-minimal
* python3
Try: sudo apt install <selected package>

python3 用 pip dev のみインストール
$ sudo apt install python3-pip python3-dev

$ which pip3
/usr/bin/pip3
$ pip3 --version
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)

venvインストール
$ sudo apt install python3-venv

そのままでは Python3.6のインストール失敗
$ sudo apt install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
E: Couldn't find any package by regex 'python3.6'

当面、3.5 のまま運用

というか、当面 git bash から Windows 版の Python(3.6)の方を利用する方針

というか、当面 git CMD から Windows 版の Python(3.6)の方を利用する方針

0 件のコメント:

コメントを投稿