可以在Python中导入的模块列表? [英] List of modules available for import inside Python?

查看:108
本文介绍了可以在Python中导入的模块列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Python中查看我可以导入的所有模块



喜欢在翻译中写作:

import.modules

另外,有没有类似Cpan for Python的东西?

Is there a way to view all the modules I have available for import
from within Python?
Like writing in the interpreter:
import.modules
Also, is there anything like Cpan for Python?

推荐答案

2008年8月27日星期三在晚上9:21,ssecorp< ci ********** @ gmail.comwrote:
On Wed, Aug 27, 2008 at 9:21 PM, ssecorp <ci**********@gmail.comwrote:

有没有办法查看所有模块我可以从Python中导入

吗?

喜欢在口译员写作:

import.modules


另外,有没有类似Cpan for Python的东西?
Is there a way to view all the modules I have available for import
from within Python?
Like writing in the interpreter:
import.modules
Also, is there anything like Cpan for Python?



最接近的是PyPI(Python包索引)

[ http://pypi.python.org/pypi] 和easy_install(

Python的包管理器) [ http://peak.telecommunity.com/DevCenter/EasyInstall]


- 克里斯

========

沿着鬣蜥的路径......

Rebertia: http://rebertia.com

博客: http://blog.rebertia.com

The closest thing would be PyPI (the Python Package Index)
[http://pypi.python.org/pypi], and easy_install (a package manager for
Python) [http://peak.telecommunity.com/DevCenter/EasyInstall].

- Chris
========
Follow the path of the Iguana...
Rebertia: http://rebertia.com
Blog: http://blog.rebertia.com


-
http: //mail.python.org/mailman/listinfo/python-list


200年8月28日星期四8月2日下午2:21,ssecorp< ci ********** @ gmail.comwrote:
On Thu, Aug 28, 2008 at 2:21 PM, ssecorp <ci**********@gmail.comwrote:

另外,有没有像Cpan这样的东西蟒蛇?
Also, is there anything like Cpan for Python?



尝试Python奶酪店/ PyPi

http://pypi.python.org/pypi

欢呼

詹姆斯


-

-

- 问题通过方法解决

Try the Python Cheese Shop / PyPi

http://pypi.python.org/pypi

cheers
James

--
--
-- "Problems are solved by method"


ssecorp写道:
ssecorp wrote:

有没有办法在Python中查看我可以导入的所有模块



喜欢在翻译中写作:

import.modules
Is there a way to view all the modules I have available for import
from within Python?
Like writing in the interpreter:
import.modules



2.5源代码中有一个帮助脚本找到所有

现有标准模块的套件:

http://svn.python.org/projects/pytho...listmodules.py


获取所有模块,删除评论后面的for循环

摆脱网站套餐。


也看到:

http://effbot.org/zone/listmodules-cgi.htm


< / F>

there''s a helper script in the 2.5 source code kit that locates all
existing standard modules:

http://svn.python.org/projects/pytho...listmodules.py

to get all modules, remove the for-loop that follows after the comment
"get rid of site packages".

also see:

http://effbot.org/zone/listmodules-cgi.htm

</F>


这篇关于可以在Python中导入的模块列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆