An warware: anaconda pytorch depencies windows

anaconda depencies windows A cikin duniyar ci gaban software ta yau, sarrafa abubuwan dogaro da tabbatar da ingantaccen aiki na aikace-aikace a kan dandamali daban-daban sun zama mahimmanci. ฦŠaya daga cikin yarukan shirye-shirye da ake amfani da su sosai, Python, yana ba da cikakkiyar yanayin yanayin ษ—akunan karatu da abin dogaro don biyan buฦ™atun aikace-aikace iri-iri. Anaconda, sanannen rarraba Python, yana sauฦ™aฦ™e wannan tsari ta hanyar samar da yanayi mai sauฦ™in amfani don sarrafa abin dogaro da aiki akan tsarin Windows. A cikin wannan labarin, za mu buษ—e ษ“oyayyiyar sarrafa abubuwan dogaro ta amfani da Anaconda kuma mu nuna hanyoyin da suka dace don magance wannan batu. A kan hanyar, za mu bincika dakunan karatu na Python daban-daban da ayyuka waษ—anda za su iya taimakawa cikin wannan tsari.

Gudanar da Dogaro na Anaconda akan Windows

Anaconda buษ—aษ—ษ—en tushe ne na rarraba shirye-shirye na Python da R, da farko ana amfani da su don sarrafa manyan bayanai, lissafin kimiyya, da kuma nazarce-nazarce. Yana taimakawa wajen sarrafa mahallin Python da yawa da kuma abin dogaronsu. Wannan dacewa yana ba masu haษ“aka damar yin aiki tare da nau'ikan Python da ษ—akunan karatu daban-daban ba tare da tsoma baki tare da yanayin tsarin duniya ba.

Don shigar da Anaconda akan Windows, kuna buฦ™atar saukar da mai sakawa daga gidan yanar gizon hukuma kuma ku bi umarnin mayen shigarwa. Da zarar an gama shigarwa, zaku iya tabbatar da shi ta buษ—e Anaconda Prompt.

Idan ya zo ga sarrafa abubuwan dogaro da Python, Anaconda yana ba da mahimman abubuwa guda biyu: conda da kuma pip. Waษ—annan duka manajojin fakiti ne waษ—anda ke sarrafa shigarwa, sabuntawa, da cire fakitin Python. Ko da yake suna da nau'i-nau'i da hanyoyi daban-daban, suna haษ—aka da juna don samun nasarar gudanar da dogaro mai ฦ™arfi.

Amfani da Conda don Gudanar da Dogaro

Konda shine tsohon manajan fakitin da aka haษ—a a cikin Anaconda. Tana da ikon sarrafa mahalli, fakiti, da abin dogaro a cikin harsunan shirye-shirye da yawa. Conda na iya ฦ™irฦ™irar keษ“antaccen mahalli na Python, yana bawa masu amfani damar ware abubuwan dogaro da kuma tsara su don ayyuka daban-daban.

Don ฦ™irฦ™irar sabon yanayi na conda, gudanar da umarni mai zuwa a cikin Anaconda Prompt:

conda create -n myenv python=x.x

Anan, 'myenv' shine sunan muhalli, kuma 'x.x' shine nau'in Python da ake so.

Don kunna mahalli, yi amfani da umarnin:

conda activate myenv

Yanzu, zaku iya fara shigar da fakiti a cikin wannan mahallin ba tare da shafar shigarwar Python ษ—inku na duniya ba. Misali, don shigar da 'numpy', gudu:

conda install numpy

Amfani da Pip don Gudanar da Dogaro

Kodayake conda yana aiki azaman kayan aiki mai ฦ™arfi, wani lokacin kuna iya buฦ™atar amfani da su pip, Mai sarrafa fakitin de-facto na Python Package Index. Pip yana ba da dama ga ษ—imbin fakitin Python waษ—anda ฦ™ila ba za a samu ta hanyar conda ba.

Kafin amfani da pip, yana da mahimmanci don tabbatar da cewa an kunna yanayin da kuke so. Kuna iya shigar da fakiti tare da umarni mai zuwa:

pip install package_name

Daidaituwa da daidaituwar fakitin da aka shigar ta hanyar pip shine muhimmin al'amari da za a yi la'akari. Anan shine pip-kayan aiki shiga cikin hoton, suna ba da ฦ™arin ayyuka. Kuna iya shigar da kayan aikin pip tare da umarnin:

pip install pip-tools

ฦŠaya daga cikin mafi mahimmancin fasalulluka na kayan aikin pip shine samar da a bukatun.txt fayil dangane da yanayin ku. Wannan fayil ษ—in yana ba da hoton abubuwan dogaro da takamaiman nau'ikan su, yana tabbatar da cewa ana iya sake fitar da yanayi iri ษ—aya a duk inda ake buฦ™ata.

A ฦ™arshe, sarrafa abubuwan dogaro a Python akan tsarin Windows ya zama tsari mai tsari tare da taimakon Anaconda, conda, da manajojin fakitin pip. Ta hanyar rungumar waษ—annan kayan aikin, masu haษ“akawa za su iya kiyaye tsabta da ingantaccen yanayin ci gaba, rage yuwuwar rikice-rikice da batutuwa masu dacewa a cikin ayyukan su.

Shafi posts:

Leave a Comment