1. 程式人生 > >Ubuntu 升級python2.7

Ubuntu 升級python2.7

ubuntu14 自帶的是python2.7,但是我們有些時候需要使用python3 ,怎麼辦呢

輸入命令:sudo apt-get install python3

預設安裝路徑是/usr/bin

使用軟連結方式

sudo rm -rf python

sudo ln -s python3.5 python

輸入python命令:

安裝完成

安裝pip:

sudo apt-get install python-pip

完成!

相關推薦

Ubuntu 升級python2.7

ubuntu14 自帶的是python2.7,但是我們有些時候需要使用python3 ,怎麼辦呢輸入命令:sudo apt-get install python3預設安裝路徑是/usr/bin使用軟連結方式sudo rm -rf pythonsudo ln -s python

【轉】Mac下升級python2.7到python3.6

分享 www. blog sso 沒有 python3 pip 讀者 oot 1. 前言 Mac系統自帶python2.7,本文目的是將自帶的python升級到3.6版本。 網上有本多的做法是讓python2.7和python3.X兩個版本共存,博主並不知道,是兩版本共存

升級python2.7

configure 升級 腳本 config onf con -- yum www. 升級python2.7 wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz mkdir /usr/local/p

linux 升級python2.7 安裝setuptools

pip 內容 res 問題解決 當前 升級python amp 查看 缺少 linux為redhat4,系統默認安裝了python2.6,需要執行的python腳本內容包含標準庫之xml.etree.ElementTree 用到庫裏的一個iter方法是python2.7的

ubuntu16.04升級Python2.7到3.5

ati red pre 建立 3.5 參考 驗證 style usr 最近開始學Python,但我發現我ubuntu16.04上默認的Python是2.7,並不是3,x 於是準備Python升級,記錄安裝過程給初學者參考一下。 1.先取得管理員權限, 個人習慣先取得

升級python2.7到3.6.5

https mage amp style src configure png install conf 軟件下載:wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz yum install wget

Mac 升級python2.7 到 3.5

follow -s rar setting for original ram box highlight Mac 系統 OSX 10.12 以上 第1步:下載Python3.5 下載地址如下: Pyth

centos6 自帶python2.6升級python2.7+

安裝python copyright python3.5 type configure localhost ati code hat centos6系統自帶Python為2.6.6版本,升級搞版本操作如下(python2-python3都一樣) 1.下載需要升級的pyth

Ubuntu安裝Python2.7

  自動下載:                 Ubuntu的命令框中:wget http://www.python.org/

CentOS升級Python2.7

CentOS 6.X 自帶的Python版本是 2.6 , 但是很多主流框架和第三方依賴包已經開始逐步放棄維護2.6版本了,況且如果一個全新的業務系統還是用Python2.6跑的話,你都不好意思說是搞Python的,為了順利升級到Python2.7,筆者根據網上資料整理了升級步驟和過程中遇到

阿里雲yum升級python2.7 CentOS6 預設自帶pyton2.6

一、centOS預設自帶的python版本為啥不是2.7 因為:由於yum沒有相容python2.7 ,所以安裝python2.7 yum就無法使用了,該如何做呢? 讓python2.6 和 python2.7 共存 ,yum 依然使用 python 2.6 ,系統使用

ubuntupython2.7 安裝 xlrd、xlwt、pip、 第三方庫(library)的簡易方法、pip 安裝 selenium

sudo easy_install xlrd sudo easy_install xlwt sudo easy_install xlutils sudo easy_install pip pip install selenium 使用: import xlrd import xlwt

Mac中升級Python2.7到Python3.5步驟

強烈建議不要直接sudo ln -s (會直接覆蓋系統原來的link導致想呼叫自帶python的軟體出現問題),修改path variable雖然比較安全,但對於你的需要是沒有太大必要的。 想要實現你的如下要求在終端裡直接輸入“python”命令就會執行3.5的py版本? 直接在.profile加一個alia

升級python2.7.6到2.7.12

可嘗試如下 sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python2.7 sudo apt-get upgrade

linux升級Python2.7.12

第一步:下載 # wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz 第二步: 解壓剛剛下載的壓縮包 #tar -xvf Python-2.7.12.tar.xz 第三步:新建安裝目錄 mkd

mac python2.7.10 升級到 3.6

配置 vim 移動 指向 安裝 當前 python3 root 軟連接 第一步:   下載當前最新版本 Python3.6,下載地址:https://www.python.org/downloads/ 第二步:   安裝下載好的包,安裝完成後的目錄如下:   /Libra

Centos6.5 python2.6.6升級2.7.13,安裝setuptools和pip

centos python pip setuptools selenium1、安裝Development Tools和相關編譯安裝的組件# yum -y groupinstall "Development tools" # yum -y install openssl-devel zlib-devel ncu

python2.6 升級python2.7

python 版本升級 想用redis-py-cluster連接redis cluter,查看文檔發現只支持python2.7和3的版本,而系統自帶的是2.6的版本,需要對系統python版本進行升級。查看python的版本# python -VPython 2.6.61.下載Python-2.7.3

centos 7 python2.7.5升級到3.5.2

duyuheng centos 7 python2.7.5升級到3.5.2centos 7 python2.7.5升級到3.5.2系統 centos 7 軟件包 python3.5.2 下載:wget https://www.python.org/ftp/python/3.5.2/Python-3.

ubuntu優麒麟 安裝python2.7.11

linux pythonwget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tar.xzxz -d Python-2.7.11.tar.xztar -xvf Python-2.7.11.tarcd Python-2.7.11./config