Ubuntu中为搭建python3.6环境进行的设置

安装 中文输入法

*setting 选键盘,然后添加中文chinese ;然后屏幕右上角键盘上右键选 Fcitx,然后text entry选 + ,选拼音(sunpinyin)chinese

如何安装python3.6

--关键字“ubuntu 16.04 install python3.6 source”

----来自 https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get

Ubuntu 14.04 and 16.04

If you are using Ubuntu 14.04 or 16.04, you can use J Fernyhough's PPA athttps://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6:

sudo add-apt-repository ppa:jonathonf/python-3.6sudo apt-get update

sudo apt-get install python3.6

Alternatively, you can use Felix Krull's deadsnakes PPA athttps://launchpad.net/~deadsnakes/+archive/ubuntu/ppa:

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt-get update

sudo apt-get install python3.6

Ubuntu 16.10 and 17.04

If you are using Ubuntu 16.10 or 17.04, then Python 3.6 is in the universe repository, so you can just run:

sudo apt-get update

sudo apt-get install python3.6

After installation for Ubuntu 14.04, 16.04, 16.10 and 17.04

To invoke the Python 3.6 interpreter, runpython3.6.

Ubuntu 17.10

Ubuntu 17.10 already comes with Python 3.6 as default. Just runpython3to invoke it.

如何安装PIP on python3.6 ?

--ASW : python3.6 -m pip-V

// With regard toinstallingpip, usingcurl(instead ofwget) avoids writing the file to disk.

curl https://bootstrap.pypa.io/get-pip.py|sudo python3.6  (略复杂方法 --这个方法在远端服务器也管用)

After this,pip,pip3, andpip3.6can all be expected to point to the same target:

$(pip-V&&pip3-V&&pip3.6-V)|uniq

pip9.0.1from/usr/local/lib/python3.6/dist-packages(python3.6)

Of course you can alternatively usepython3.6 -m pipas well.  --(最简易的方法)

$ python3.6-m pip-V

pip9.0.1from/usr/local/lib/python3.6/dist-packages(python3.6)

你可能感兴趣的:(Ubuntu中为搭建python3.6环境进行的设置)