Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For Python programmers, is there anything equivalent to Perl's CPAN?

Tags:

python

perl

I'm learning Python now because of the Django framework. I have been a Perl programmer for a number of years and I'm so used to Perl's tools. One of the things that I really miss is Perl's CPAN and its tools. Is there anything equivalent in Python? I would like to be able to search, install and maintain Python modules as easy as CPAN. Also, a system that can handle dependencies automatically. I tried to install a module in Python by downloading a zip file from a website, unzipped it, then do:

sudo python setup.py install

but it's looking for another module. Now, lazy as I am, I don't like chasing dependencies and such, is there an easy way?

like image 454
sammydc Avatar asked Jan 04 '09 00:01

sammydc


People also ask

What is the difference between Cpan and Cpanm?

The main difference between the two is that if you have Perl you should already have the cpan command. Whereas you won't have cpanm unless/until you install it.

What is CPAN used for?

Description: The CPAN module automates and simplifies the make and install of Perl modules and extensions. This technology allows users to query, download, and build Perl modules from CPAN sites. This technology does not utilize a database.

What is CPAN shell?

DESCRIPTION. The CPAN module automates or at least simplifies the make and install of perl modules and extensions. It includes some primitive searching capabilities and knows how to use LWP, HTTP::Tiny, Net::FTP and certain external download clients to fetch distributions from the net.

What is CPAN module in Perl?

The Comprehensive Perl Archive Network (CPAN) is a repository of over 250,000 software modules and accompanying documentation for 39,000 distributions, written in the Perl programming language by over 12,000 contributors.


1 Answers

sammy, have a look at pip, which will let you do "pip install foo", and will download and install its dependencies (as long as they're on PyPI). There's also EasyInstall, but pip is intended to replace that.

like image 98
llimllib Avatar answered Oct 03 '22 16:10

llimllib