Cov txheej txheem:

Kuv yuav nruab Python 2 ntawm Ubuntu li cas?
Kuv yuav nruab Python 2 ntawm Ubuntu li cas?

Video: Kuv yuav nruab Python 2 ntawm Ubuntu li cas?

Video: Kuv yuav nruab Python 2 ntawm Ubuntu li cas?
Video: Installing Jupyter Notebook on Ubuntu! 2024, Kaum ib hlis
Anonim

Raws li qhov xwm txheej phem tshaj plaws yog tias koj tsis muaj Python 2 ntsia, koj tuaj yeem nruab nws los ntawm kev ntaus cov hauv qab no rau hauv lub davhlau ya nyob twg:

  1. sudo add-apt-repository ppa: fkrull/deadsnakes- python 2 .
  2. sudo apt-tau hloov tshiab.
  3. sudo apt-mus nruab nruab python2 .

Ib yam li ntawd, nws tau nug, Kuv yuav nruab Python ntawm Ubuntu li cas?

Kev xaiv 1: Nruab Python 3.7 Siv apt (Easer)

  1. Kauj ruam 1: Hloov kho thiab hloov kho cov npe Repository. Qhib lub qhov rais davhlau ya nyob twg, thiab nkag mus rau hauv qab no: sudo apt hloov tshiab.
  2. Kauj ruam 2: Nruab Kev Txhawb Nqa Software.
  3. Kauj ruam 3: Ntxiv Deadsnakes PPA.
  4. Kauj ruam 4: Nruab Python 3.7.

Ib tug kuj nug, Kuv yuav ua li cas thiaj paub yog Python tau teeb tsa ntawm Ubuntu? Rau kuaj yog tias nws yog ntsia , mus rau Applications> Utilities thiab nyem rau ntawm Terminal. (Koj tuaj yeem nias qhov hais kom ua-spacebar, ntaus lub davhlau ya nyob twg, thiab tom qab ntawd nias Enter.) Yog koj muaj Python 3.4 lossis tom qab ntawd, nws yog qhov zoo los pib los ntawm kev siv lub ntsia version.

Ua li no, kuv yuav nruab Python ntawm Linux li cas?

Siv tus txheej txheem Linux installation

  1. Nkag mus rau Python download site nrog koj tus browser.
  2. Nyem qhov txuas tsim nyog rau koj lub version ntawm Linux:
  3. Thaum nug seb koj puas xav qhib lossis khaws cov ntaub ntawv, xaiv Txuag.
  4. Double-click cov ntaub ntawv downloaded.
  5. Ob-nias lub Python 3.3.
  6. Qhib ib daim qauv ntawm Terminal.

Kuv yuav ua li cas thiaj tau Python 3 ntawm Ubuntu?

Yuav ua li cas rau nruab Python 3.6. 1 hauv Ubuntu 16.04 LTS

  1. Qhib lub davhlau ya nyob twg ntawm Ctrl + Alt + T lossis tshawb rau "Terminal" los ntawm app launcher.
  2. Tom qab ntawd txheeb xyuas qhov hloov tshiab thiab nruab Python 3.6 ntawm cov lus txib: sudo apt-tau hloov tshiab sudo apt-tau nruab python3.6.

Pom zoo: