Python Pip Nedir?

in #python5 years ago (edited)

En kısa tanımı ile pip bir paket yönetim yazılımıdır. python ile yazılmış paketlerin yönetimini pip ile yapabilirsiniz.

Diğer paket yönetim programları ( apt-get / aptitude … ) dururken neden pip kullanayım ki sorusu geliyor tabi insanın aklına. pip ‘in en önemli avantajı requirements dosyası ile birden çok paketin istenilen versiyonları ile kurulmasıdır.

Örneğin

sudo pip install -r requirements.txt

komutu ile requirements.txt dosyası ile verilen tüm paketler tek komut ile kurulabilir ve böylece paketler arası sürüm farklarından oluşabilecek olası problemlerin önüne geçilmiş olunur.

Örnek requirements.txt dosyamızın içeriği şu şekilde olabilir :

Django==1.3
Fabric==1.2.0
Jinja2==2.5.5
PyYAML==3.09
Pygments==1.4
SQLAlchemy==0.7.1
South==0.7.3

Böylece istediğimiz versiyonları içeren bir geliştirme ortamı oluşturabiliriz.

Eğer pip ile tek bir paket kurmak istersek

sudo pip install celery==3.1.7

veya celery paketinin son versiyonu için

sudo pip install celery

Ayrıca pip virtual-environment ile kullanıldığında tadından yenmez ama o başka bir yazının konusudur.python-7be70baaac.png

Sort:  

Congratulations @coskunsoysal! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.19
TRX 0.14
JST 0.030
BTC 59908.77
ETH 3191.82
USDT 1.00
SBD 2.43