Kutheni ufunda iPython. I-classic engapheliyo kwisitayela.

Kutheni ufunda iPython

Unikezelo lweelwimi ezivulekileyo zokusetyenziswa kweelwimi phantse lube lukhulu njengalezo zabapapashi beMarkdown (kwaye ezi kufuneka zibhengezwe njengobhubhane yi-WHO)Ukuba uyazibuza ukuba yeyiphi oza kuyifunda njengokuzonwabisa okanye ukuphuhlisa ezakho izicelo, le meko inokudideka. Nangona kunjalo, impendulo kwimibuzo yakho inamalungu amabini kuphela; IPython.

Kutheni ufunda iPython

Kukho ulwimi olusetyenziswayo olwenza ngcono into nganye enokwenziwa ngePython, kodwa ayifani. NgePython unokwenza usetyenziso lwazo zonke iinkqubo zedesktop kunye nezeeselfowuni. Isetyenziselwa ukwenza iinkqubo zemidlalo, ukwenza uphando lwezenzululwazi okanye iinkqubo zokusetyenziswa kwemali. Uluhlu lwayo olubanzi lweemodyuli ezilungiselelwe kwangaphambili lusindisa ixesha elininzi lenkqubo. Kwaye, ukuba unguGoogle okanye ukugcwala okuPhezulu, umntu othile wenze iapps eyenza le nto ufuna ukuyenza kwaye kufuneka ukope kwaye uguqule.

Ukugxininisa ukubaluleka kolu lwimi lwenkqubo, kwanele ukuyichaza loo nto UMicrosoft uqesha abaphuhlisi abaziwayo, kubandakanya umyili wolwimi uGuido Van Rossum ngokwakhe. Kukho amarhe okuba iPython iyakuthatha indawo yeVBA njengolwimi olubhaliweyo kwiofisi yenkampani.

Izixhobo zokuqala inkqubo kwiPython

Ukuba usasazo lweLinux oluhlaziyiweyo, awudingi enye into yokwenza nenkqubo yePython. Ewe ukuba nendawo yokudibanisa edibeneyo kunye nenkxaso yePython kuya kukunceda kakhulu, kodwa ungafumana ngesiphelo kunye nomhleli wokubhaliweyo.

Ukujonga ingxelo efakiweyo yePython vula itheminali kunye nohlobo:
python3 -V

Ungajonga ukuba loluphi uhlobo lwamva olukhoyo iphepha lokukhuphela yeprojekthi.

Njengokuba kuqhele ukwenzeka kulwabiwo oluhlaziywa rhoqo lweLinux, ingxelo yokugqibela ayisoloko ifumaneka. Ngokubanzi, umahluko kwisebe elinye awuhlali ukuthethelela ukufakwa ngesandla. Kodwa, ukuba uthanda ukuhlala usemgangathweni ungayenza ngale ndlela ilandelayo.

Iwebhu ibhaqa ngokuzenzekelayo inkqubo yokusebenza kwaye ikubonise ingxelo ehambelana nayo. Yenza inqaku lenombolo yenguqulo kuba kuya kufuneka ubeke endaweni yabo kwi-Xs kwimiyalelo kwesi sifundo.

Debian / Ubuntu kunye neeDerivatives

Sifaka ukuxhomekeka okuyimfuneko
sudo apt install gcc openssl-devel bzip2-devel libffi-devel zlib-devel
Siya kwisikhombisi apho sigcina khona iPython
cd Descargas

Unzip kwifolda.
tar -xvf Python-X.X.X.tar.xz
Siya kwisikhombisi apho iifayile zokufaka zazingafakwanga

cd Python-X.X.X

Sazisa iskripthi soqwalaselo.

./configure --enable-optimizations
Siqala inkqubo yokuhlanganisa

make

sudo make install

CentOS / RHEL / Fedora

Ukufakwa kwezixhomekeko eziyimfuneko
sudo dnf install gcc openssl-devel bzip2-devel libffi-devel zlib-devel
Siya kwisikhombisi apho sigcina khona iPython
cd Descargas

Unzip kwifolda apho kukho iifayile.
tar -xvf Python-X.X.X.tar.xz
Sitshintshela kulawulo apho iifayile zokufaka zazingafakwanga

cd Python-X.X.X
Sazisa iskripthi soqwalaselo

./configure --enable-optimizations
Siqala inkqubo yokuhlanganisa

sudo make altinstall

Ukukhetha indawo emanyanisiweyo yophuhliso

Kuzo zonke iimeko ungaqinisekisa uhlaziyo ngomyalelo
python3 -V

Isibonelelo sendawo edibeneyo yophuhliso lwePython kwiLinux ibanzi kwaye kukuwe ukuba ufumane eyiphi eyona ikulungeleyo.. Siza kugxila kwizindululo zekhowudi evulekileyo ekhululekileyo.

Uluntu lwePyCharm

Sisixhobo esenziwe ngabadwelisi benkqubo yePython beenkqubo zePythivuliwe. Inika amanqaku anje ngokugqitywa kwekhowudi, uhlalutyo lwekhowudi ukufumana iimpazamo nokuzilungisa ngokuzenzekelayo.

Iyafumaneka ezivenkileni snap, I-FlatPak kwaye isuka kwiwebhu ukusuka kumakhi.

IPyCharm Edu

Ukusuka kubaphuhlisi ngokwabo, ikuvumela ukuba ufunde kwaye ufundise iPython ngokudibeneyo. Ungayifaka kwivenkile snap nakwifayile ye- web.

VS Codium

Xa iMicrosoft yathatha isigqibo sokuya kumthombo ovulekileyo kunye nokulukuhla abaphuhlisi, yakhupha iKhowudi yeVenkile yeVidiyo. Ikhowudi ye-VS yindawo edityanelweyo yophuhliso nenkxaso yeelwimi ezininzi zenkqubo kunye nendawo yokugcina iiplagi ezinkulu. Nditshilo ngasentla ukuba inkampani yayiqeshe abaphuhlisi abaliqela bePython, omnye wabo wayengoyena mqambi weeplagi ezaziwayo zePython yeKhowudi yeVS, ke ngoko sinokuthi iPython idlala kwalapha ekhaya.

Nangona kunjalo, iimvakalelo ezindala azipheli. Uninzi luyaqhubeka ukungayithembi iMicrosoft. Kubo, yiCodium. Le yikhowudi yemithombo esuka kwiKhowudi yeVS kodwa ngaphandle kwayo nayiphi na into eyongezwayo yeMicrosoft. Isodium iyahambelana ngokupheleleyo nazo zonke iiplagi kwaye inempawu ezifanayo nezentsusa.

Iyafumaneka evenkileni snap, I-FlatPakkwiwebhusayithi yakho


Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Inoxanduva lwedatha: I-AB Internet Networks 2008 SL
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   Manuel sitsho

    Ndacwangcisa iminyaka emininzi eyadlulayo ndisebenzisa iVisual Basic kwaye ndinomnqweno wokufunda iPython kodwa ndisebenzisa imeko ebonakalayo evumela ukuba ndenze iifestile kunye nezinto zeewindows ngendlela elula ngaphandle kokuchitha ixesha lokufaka iikhowudi. Yeyiphi eyona nto ifanelekileyo onokukhetha kuyo?

      1.    I-L1ch sitsho

        Kodwa ufuna ukwenza ujongano lomzobo ovela kwi-GUI njenge-Visual Studio, ngaphandle kokubhala ikhowudi yokwenza ezo zinto zinxibelelanayo.