Sida loogu rakibo Python PIP ee Xidhmada Python
Python kaliya maaha luuqad barnaamij ee bilowga-waa luuqad awood leh oo si buuxda u shaqaynaysa, oo leh tiro aad u badan oo xidhmo iyo maktabado dhinac saddexaad ah oo laga sameeyay hareeraheeda. Halkii aad wax kasta ku qori lahayd adigu, waxaad geyn kartaa xirmooyinkan qolo saddexaad oo aad u isticmaali kartaa qayb ka mid ah mashaariicda codaynta.
Waxaad kuwan ku heli kartaa adoo raadinaya GitHub(searching GitHub) ama shabakada, laakiin sidoo kale waxaad isticmaali kartaa PIP , maamulaha xirmada ee Python , si aad tan u sameyso. PIP waxay kuu ogolaanaysaa inaad raadiso oo aad ku rakibto xirmooyinka Python PIP ee (Python PIP)Tusaha Xidhmada Python(Python Package Index) , oo ay ku jiraan kumanaan baakadood.
Waa maxay PIP?(What Is PIP?)
PIP, ama P ackage I installer for P ython, waxay kuu ogolaanaysaa inaad ku rakibto baakadaha kaydka dhexe ee xirmooyinka Python ee laga heli karo Tusmada Xidhmada Python(Python Package Index) . Marka la eego shuruudaha fudud, waxay u shaqeysaa sidii dukaanka app ee Python , oo kuu oggolaanaya inaad ku rakibto xirmooyinka Python khadka taliska ama terminalka adigoon u baahnayn inaad adigu heshid.
Isticmaalayaasha Linux(Linux) waxay horeyba u baran doonaan habkan-maareeyayaasha xirmooyinka waa qayb muhiim ah oo ka mid ah waayo-aragnimada isticmaalaha Linux , oo leh (Linux)APT , Pacman , iyo kuwa kale oo kuu ogolaanaya inaad ku rakibto software kala duwan qaybinta Linux kala duwan ee daaqada terminal.
Waxaad u baahan doontaa Python in lagu rakibo ka hor inta aanad bilaabin isticmaalka PIP . macOS iyo inta badan Linux qaybinta ayaa mar hore lahaan doona Python , laakiin waxaad u baahan doontaa inaad gacanta ku rakibto Windows 10 . Waxaad sidoo kale u baahan doontaa inaad tan sameyso haddii qaybinta Linux aysan ku rakibin Python (ama ay leedahay nooc ka sii weyn Python ) adoo isticmaalaya maareeyaha xirmada qaybintaada.
Ku rakibida Python PIP Linux(Installing Python PIP On Linux)
Xirmada python-pip waxay diyaar u tahay soo dejinta iyo rakibida dhammaan qaybinta Linux ee waaweyn , sida kala duwanaanshuhu. Iyada oo ku xidhan qaybinta Linux , waxaad u baahan kartaa inaad rakibto xirmada python2-pip(python2-pip) haddii aad wali isticmaaleyso taxanaha Python 2.x , halkii aad ka isticmaali lahayd taxanaha Python 3.x.(Python 3.x)
Haddii aad isticmaalayso Python 3.4 ama ka sareeya (ama Python 2.7.9 ama ka sareeya), uma baahnid inaad ku rakibto PIP Linux (PIP),(Linux) sidii horeba loo rakibay. Hubi tan adigoo furaya daaqada terminal oo ku qor python3 -version si aad u hubiso nooca (python3 –version)Python ee lagu rakibay , ka dib isticmaal python -m pip ama python3 -m pip si aad u isticmaasho.
Noocyada Python ee ka hooseeya 2.7.9 ama 3.4, ku rakibida Python PIP Linux waxay kuxirantahay maamulaha xirmada nidaamka ee la isticmaalo. Waa kan sida loogu rakibo PIP aaladaha (PIP)Linux ee kala duwan .
- Si aad Python PIP(Python PIP) ugu rakibto Ubuntu ama qaybinta ku salaysan Debian, fur terminal oo ku qor sudo apt install python-pip ee Python 2.x . Nooca sudo apt install python3-pip ee rakibaadda Python 3.x.
- On Arch Linux , fur terminal oo ku qor sudo pacman -S python2-pip ee Python 2.x. Nooca sudo pacman -S python-pip ee rakibaadda Python 3.x.
- Haddii aad isticmaalayso qaybinta ku salaysan Fedora, ku qor sudo dnf update python-setuptools(sudo dnf upgrade python-setuptools) , oo ay ku xigto sudo dnf install python-pip python-wheel ee Python(Python 2.x) 2.x. Nooca sudo dnf ku rakib python3 python3-wheel(sudo dnf install python3 python3-wheel ) ee rakibaadda Python 3.x.
- Si aad gacanta ugu rakibto PIP , fur terminal oo ku qor curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py . Marka la soo dejiyo, ku qor Python get-pip.py si aad u socodsiiso qoraalka rakibaadda tooska ah.
Ku rakibida Python PIP Daaqadaha(Installing Python PIP On Windows)
Si ka duwan Linux , Windows ma la iman Python horay loo rakibay. Taas macnaheedu waa inaad u baahan tahay inaad soo dejiso oo aad ku rakibto Python Windows(download and install Python for Windows) marka hore ka hor inta aanad bilaabin isticmaalka PIP ee goobtan.
Haddii aad rakibtay nooca ugu casrisan ee Python , markaa waa inaad heshaa PIP oo lagu rakibay rakibaada Python . Sidaan soo sheegnay, Python 2.7.9 iyo Python 3.4 (iyo wixii ka sareeya) waa in si toos ah loogu rakibaa PIP .
Haddii aad isticmaalayso nooc Python ah oo duug ah, waxaad u baahan doontaa inaad isticmaasho script -ga-pip(get-pip) si aad si toos ah ugu rakibto pip.
- Soo deji qoraalka get-pip.py (Download the get-pip.py script)PC(Windows) gaaga . Kor u kaca PowerShell ama khadka taliska oo leh marin maamul, ku qor python get-pip.py si aad si toos ah ugu rakibto PIP.
Kani waa inuu si toos ah kuugu rakibaa Python PIP si aad u isticmaasho. Kadib waxaad ka socodsiin kartaa PowerShell ama daaqada khadka taliska adoo ku qoraya pip ama python -m pip .
Sida loo rakibo Python PIP MacOS
Sida Linux , macOS inta badan waxay la timaadaa Python la rakibay, iyo sidoo kale nooca PIP . Labada Python iyo PIP ee macOS waxay u badan tahay inay duugoobayaan, marka la barbar dhigo sii deynta ugu dambeysay, laakiin waa inay u shaqeysaa sidii caadiga ahayd iyadoo la furayo daaqada macOS -ka oo ku garaaca (macOS)pip ama python -m pip (ama pip3 ama python3 -m pip ).
Haddii aad rabto inaad wada cusboonaysiiso Python iyo PIP , waxaad si fudud u samayn kartaa tan adoo isticmaalaya maareeyaha xirmada Homebrew(Homebrew package manager) ee macOS.
- Haddii aad ku rakibtay Homebrew , fur daaqadda terminal oo ku qor brew install Python si aad u cusbooneysiiso rakibaadaada nooca ugu dambeeyay ee Python 3.x. (Python 3.x)Si loo rakibo rakibaadda Python 2.x ka weyn , ku qor brew install python@2 beddelkeeda.
Marka la rakibo, ku qor pip ama python -m pip (ama pip3 ama python3 -m pip ) casharka si aad u maamusho PIP oo arag liiska calanka PIP ee la heli karo.(PIP)
Cusbooneysiinta PIP(Updating PIP)
Haddii aad hore ugu rakibtay PIP , laakiin aad rabto inaad u cusboonaysiiso noocii ugu dambeeyay, waxaad taas ku samayn kartaa adiga oo isticmaalaya PIP laftiisa.
- Isticmaalayaasha macOS iyo Linux, ku qor pip install -U pip si aad u bilowdo nidaamka cusboonaysiinta. Waxa kale oo aad isticmaali kartaa pip3 install -U pip ama python -m pip install -U pip .
- Isticmaalayaasha Windows waxay ku rakibi karaan Python PIP iyagoo furaya PowerShell ama khadka taliska oo leh marin u helka maamulka oo ku qora python -m pip install -U pip .
Rakibaadda & Ka-saarida Xirmooyinka Python Iyadoo la adeegsanayo PIP(Installing & Uninstalling Python Packages Using PIP)
Marka PIP la rakibo, la cusboonaysiiyo, oo diyaar u ah in lagu isticmaalo goobta aad dooratay, waxaad ugu dambeyntii bilaabi kartaa inaad isticmaasho si aad u soo dejiso oo ugu rakibto xirmooyinka Python , ama u isticmaal si aad u tirtirto xirmooyinka jira.
- Si loo rakibo xirmo Python cusub oo la adeegsanayo PIP , ku qor xirmada rakibida pip(pip install package) ama Python -m pip install pack(python -m pip install package) , ku beddel baakidhka(package) magaca xirmada. Waxaa laga yaabaa inaad u baahato inaad isticmaasho pip3 ama python3 meelaha qaarkood sida macOS haddii aad labada Python 2.x iyo Python 3.x ku rakiban yihiin.
- Si aad u aragto liiska dhammaan xirmooyinka Python ee la rakibay, ku qor (Python)liiska pip(pip list ) ama python -m pip list. U isticmaal pip3 ama python3 xirmooyinka Python 3.x ee meelaha qaarkood.
- Si aad meesha uga saarto xirmo, ku qor xirmo uninstall pip(pip uninstall package) ama python -m pip uninstall pack(python -m pip uninstall package) , ku beddel baakadda(package) magaca xirmada. Isticmaal pip3 ama python3 meelo gaar ah haddii aad labadaba ku rakibtay Python 2.x iyo 3.x. Taabo y si aad u xaqiijiso fur-furka
Isticmaalka PIP si loo horumariyo Mashruucyada Python ka Wanaagsan(Using PIP To Develop Better Python Projects)
Markaad ogaato sida loo rakibo Python PIP oo aad u isticmaasho si aad u rakibto baakado cusub, waxaad isla markiiba heli kartaa tiro aan dhammaad lahayn oo maktabado ah iyo mashruucyo kale oo kuu ogolaanaya inaad horumariso mashruucyo waaweyn oo ka sii wanaagsan oo adiga ah adoo isticmaalaya Python .
Python waa mid ka mid ah luuqadaha barnaamijyada ugu wanaagsan ee la barto(best programming languages to learn) , gaar ahaan cod-bixiyeyaasha cusub, iyada oo ay ugu wacan tahay hab fudud oo loo fahmi karo iyo tiro aan dhammaanayn oo agab ah oo loogu talagalay bilowgayaasha.
Haddi aad tahay codeer Python cusub ama pro, had iyo jeer waxaa jira shay cusub oo la baranayo, markaa na ogeysii tabaha Python adiga kuu gaar ah (ama su'aalaha) qaybta faallooyinka ee hoose.
Related posts
Tababarka Python ee bilowgayaasha: Sida loo bilaabo
Sida Python loogu isticmaalo Windows
Dib-u-eegis Buugaag - Hagaha sida-Geek-ga loo barto ee Windows 8
Ku rakibida GIMP Plugins: Habka-Hagaha
Sida loo soo dejiyo Google Chrome Offline (Standalone) Rakibaye
Sida Loo Sameeyo Foomka Dukumentiga Google-ka La Buuxin Karo
Sida loo cusboonaysiiyo Raspberry Pi
Sida loo beddelo midabka asalka ah ee Google Docs
Ku samee Gmail Desktop App leh 3-dan macmiil ee iimaylka ah
Sida Warshada dib loogu habeeyo Xbox One ama Xbox Series X
Sida SSH ama SFTP loogu geliyo Raspberry Pi kaaga
Sida Loo Bedelo Router-kaaga SSID & Sababta Aad U Baahan Tahay
Isticmaal Netstat si aad u aragto Dekadaha Dhageysiga iyo PID gudaha Windows
Sida loo sahlo Xaqiijinta Ilaalada Steam
Sida Loo Bedelo Disk Dynamic Disk-ga Aasaasiga ah
Sida Loo Dhiso Laabtoobkaaga
Isla markiiba ka saar asalka sawirada adoo isticmaalaya AI
Sida Loo Isticmaalo Buugaaga Chrome ka Kormeeraha Labaad
Sida Loo cusboonaysiiyo Software-kaaga PC si toos ah
6 Dejinta kamarada ugu Fiican ee Sawirada Dayaxa