Cov txheej txheem:

Kuv yuav hloov kho Python 2.7 li cas rau Ubuntu?
Kuv yuav hloov kho Python 2.7 li cas rau Ubuntu?

Video: Kuv yuav hloov kho Python 2.7 li cas rau Ubuntu?

Video: Kuv yuav hloov kho Python 2.7 li cas rau Ubuntu?
Video: Installing Jupyter Notebook on Ubuntu! 2024, Kaum ib hlis
Anonim

Yog li nws yooj yim heev los hloov kho Python 2.7 (uas yog los ntawm lub neej ntawd tam sim no rau hauv Ubuntu 16.04) rau Python 3.5

  1. Qhib lub davhlau ya nyob twg.
  2. Siv cov cai hauv qab no rau Hloov tshiab Python 2.7 rau 3.5.
  3. Koj yuav raug nug kom koj tso cai, ces Muab kev xaiv Y.
  4. Tos kom tiav cov txheej txheem.
  5. tshem qhov screen los ntawm kev siv cov lus hais kom meej.

Ntawm no, kuv yuav ua li cas thiaj tau Python 2.7 ntawm Ubuntu?

Yuav ua li cas rau nruab Python 2.7. 16 ntawm Ubuntu & LinuxMint

  1. Kauj Ruam 1 - Cov Lus Qhia Ua Ntej. Koj yuav tsum tau teeb tsa cov txheej txheem ua ntej hauv qab no ntawm koj qhov system.
  2. Kauj ruam 2 - Download tau Python 2.7. Download Python siv cov lus txib nram qab no los ntawm python official site.
  3. Kauj Ruam 3 - Sau Python Source.
  4. Kauj Ruam 4 - Tshawb xyuas Python Version.

Tsis tas li ntawd, kuv yuav hloov kho Python 2.7 ntawm Mac li cas? Yog li hauv lwm lo lus qee qhov haujlwm tseem yuav tsum tau ua kom hloov tshiab Python ntawm koj Mac.

  1. Qhib lub davhlau ya nyob twg thiab nkag mus: sudo rm -R /System/Library/Frameworks/Python.framework/Versions/2.7 Qhov no yuav tshem tawm yav dhau los cov versions ntawm Python 2.7.x.
  2. Tam sim no nkag mus rau qhov no rau hauv lub davhlau ya nyob twg: sudo mv /Library/Frameworks/Python.

Raws li txoj cai, Kuv yuav hloov kho Python li cas hauv Ubuntu davhlau ya nyob twg?

Koj tuaj yeem nruab Python 3.6 nrog rau lawv ntawm PPA thib peb los ntawm kev ua cov kauj ruam hauv qab no:

  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.

Puas yog Python ntsia los ntawm lub neej ntawd ntawm Ubuntu?

Los ntawm ua ntej , Ubuntu 14.04 thiab 16.04 nkoj nrog Python 2.7i ib Python 3.5. Rau nruab tseeb Python 3.6 version, koj tuaj yeem siv "deadsnakes" pab pawg PPA uas muaj cov tsis ntev los no Python versions ntim rau Ubuntu.

Pom zoo: