什么相当于python中的'gem'? [重复]

时间:2021-12-31 13:48:06

Possible Duplicate:
Does python have a package/module management system?

可能重复:python是否有包/模块管理系统?

In ruby I can do something like

在红宝石中,我可以做类似的事情

gem install my-cool-gem

How do I do this in python?

我怎么在python中这样做?

2 个解决方案

#1


21  

You are looking for PyPi - the Python Package Index..

您正在寻找PyPi - Python包索引..

You do:

你做:

pip install package

#2


5  

If you have setuptools installed then you can use easy_install. Both obtain packages from PyPI I guess. pip is preferred over easy_install though.

如果安装了setuptools,则可以使用easy_install。我猜两个都从PyPI获取包。虽然pip比easy_install更受欢迎。

#1


21  

You are looking for PyPi - the Python Package Index..

您正在寻找PyPi - Python包索引..

You do:

你做:

pip install package

#2


5  

If you have setuptools installed then you can use easy_install. Both obtain packages from PyPI I guess. pip is preferred over easy_install though.

如果安装了setuptools,则可以使用easy_install。我猜两个都从PyPI获取包。虽然pip比easy_install更受欢迎。