Python 检查模块是否正确安装
我相信我刚刚安装了pip、nose、distribution和virtualenv。我想检查一下,然后在终端中运行pydoc模块,看看有什么——它们都没有出现。我错过什么了吗?如果出现这些模块。终端输出如下(Mac,Python 2.7) 为了安装这些模块,我首先使用Python 检查模块是否正确安装,python,module,pydoc,Python,Module,Pydoc,我相信我刚刚安装了pip、nose、distribution和virtualenv。我想检查一下,然后在终端中运行pydoc模块,看看有什么——它们都没有出现。我错过什么了吗?如果出现这些模块。终端输出如下(Mac,Python 2.7) 为了安装这些模块,我首先使用sudo easy\u install pip安装了pip。然后,我做了以下工作: pip install virtualenv pip install nose pip install distribute 一切似乎都“起作用”
sudo easy\u install pip
安装了pip。然后,我做了以下工作:
pip install virtualenv
pip install nose
pip install distribute
一切似乎都“起作用”——终端下载了一些东西并打印了一些输出,我认为这意味着它起作用了(我无法返回并复制/粘贴输出,因为我关闭了终端窗口并重新打开,希望我新安装的模块会出现)
如何判断我是否已成功安装这些模块?是吗
My Name-MacBook:~ myname$ pydoc modules
Please wait a moment while I gather a list of all available modules...
2014-01-08 11:56:42.191 Python[3196:1107] Error loading /Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit: dlopen(/Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit, 265): Library not loaded: @rpath/DevToolsRemoteClient.framework/Versions/A/DevToolsRemoteClient
Referenced from: /Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit
Reason: image not found
2014-01-08 11:56:42.531 Python[3196:1107] Cannot find executable for CFBundle 0x7ff9d4354070 </System/Library/Frameworks/Message.framework> (not loaded)
AVFoundation _TE dircache pstats
AddressBook _Win dis pty
AppKit __builtin__ distutils pwd
AppleScriptKit __future__ dl py2app
AppleScriptObjC _abcoll doctest py_compile
Audio_mac _ast dumbdbm pyclbr
Automator _bisect dummy_thread pydoc
BaseHTTPServer _builtinSuites dummy_threading pydoc_data
Bastion _codecs easy_install pyexpat
CFNetwork _codecs_cn email pylab
CFOpenDirectory _codecs_hk encodings pytz
CGIHTTPServer _codecs_iso2022 errno quopri
Canvas _codecs_jp exceptions random
Carbon _codecs_kr fcntl re
Cocoa _codecs_tw filecmp readline
CodeWarrior _collections fileinput repr
Collaboration _csv findertools resource
ColorPicker _ctypes fnmatch rexec
ConfigParser _ctypes_test formatter rfc822
Cookie _curses fpformat rlcompleter
CoreData _curses_panel fractions robotparser
CoreFoundation _elementtree ftplib runpy
CoreGraphics _functools functools sched
CoreLocation _hashlib future_builtins scipy
CoreText _heapq gc select
Dialog _hotshot genericpath sets
DictionaryServices _io gensuitemodule setuptools
DocXMLRPCServer _json gestalt sgmllib
EasyDialogs _locale getopt sha
ExceptionHandling _lsprof getpass shelve
Explorer _multibytecodec gettext shlex
FSEvents _multiprocessing glob shutil
FileDialog _osx_support grp signal
Finder _pyio gzip site
FixTk _random hashlib smtpd
Foundation _scproxy heapq smtpd2
FrameWork _socket hmac smtplib
HTMLParser _sqlite3 hotshot sndhdr
IN _sre htmlentitydefs socket
InputMethodKit _ssl htmllib sqlite3
InstallerPlugins _strptime httplib sre
InstantMessage _struct ic sre_compile
InterfaceBuilderKit _symtable icglue sre_constants
JavaScriptCore _sysconfigdata icopen sre_parse
LatentSemanticMapping _testcapi idlelib ssl
LaunchServices _threading_local ihooks stat
MacOS _tkinter imageop statvfs
Message _warnings imaplib string
MimeWriter _weakref imghdr stringold
MiniAEFrame _weakrefset imp stringprep
Nav abc importlib strop
Netscape aepack imputil struct
OSATerminology aetools inspect subprocess
OpenDirectory aetypes io sunau
OpenSSL aifc itertools sunaudio
PixMapWrapper altgraph json symbol
PreferencePanes antigravity keyword symtable
PubSub anydbm lib2to3 sys
PyObjCTools applesingle linecache sysconfig
PyRSS2Gen appletrawmain locale syslog
QTKit appletrunner logging tabnanny
Quartz argparse macerrors tarfile
Queue argvemulator macholib telnetlib
ScreenSaver array macostools tempfile
ScriptingBridge ast macpath terminalcommand
ScrolledText asynchat macresource termios
SearchKit asyncore macurl2path test
ServiceManagement atexit mailbox textwrap
SimpleDialog audiodev mailcap this
SimpleHTTPServer audioop markupbase thread
SimpleXMLRPCServer autoGIL marshal threading
SocketServer base64 math time
StdSuites bdb matplotlib timeit
StringIO bdist_mpkg md5 tkColorChooser
SyncServices bgenlocations mhlib tkCommonDialog
SystemConfiguration binascii mimetools tkFileDialog
SystemEvents binhex mimetypes tkFont
Tix bisect mimify tkMessageBox
Tkconstants bonjour mmap tkSimpleDialog
Tkdnd bsddb modulefinder toaiff
Tkinter bsddb185 modulegraph token
UserDict buildtools mpl_toolkits tokenize
UserList bundlebuilder multifile trace
UserString bz2 multiprocessing traceback
WebKit cPickle mutex ttk
XgridFoundation cProfile netrc tty
_AE cStringIO new turtle
_AH calendar nis twisted
_App cfmfile nntplib types
_CF cgi ntpath unicodedata
_CG cgitb nturl2path unittest
_CarbonEvt chunk numbers urllib
_Cm cmath numpy urllib2
_Ctl cmd objc urlparse
_Dlg code opcode user
_Drag codecs operator uu
_Evt codeop optparse uuid
_File collections os videoreader
_Fm colorsys os2emxpath warnings
_Folder commands parser wave
_Help compileall pdb weakref
_IBCarbon compiler pickle webbrowser
_Icn contextlib pickletools whichdb
_LWPCookieJar cookielib pimp wsgiref
_Launch copy pipes xattr
_List copy_reg pkg_resources xdrlib
_Menu crypt pkgutil xml
_Mlte csv platform xmllib
_MozillaCookieJar ctypes plistlib xmlrpclib
_OSA curses popen2 xxsubtype
_Qd datetime poplib zipfile
_Qdoffs dateutil posix zipimport
_Qt dbhash posixfile zlib
_Res dbm posixpath zope
_Scrap decimal pprint
_Snd difflib profile
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".
My Name MacBook:~myname$pydoc模块
请稍候,我正在收集所有可用模块的列表。。。
2014-01-08 11:56:42.191 Python[3196:1107]加载/Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit:dlopen(/Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit,265):未加载库:@rpath/DevToolsRemoteClient.framework/Versions/A/DevToolsRemoteClient
引用自:/Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit
原因:找不到图像
2014-01-08 11:56:42.531 Python[3196:1107]找不到Cbundle 0x7ff9d4354070的可执行文件(未加载)
AVFoundation _teDircache pstats
地址簿
应用套件内置式配电盘
AppleScriptKit___;u future___;dl py2app
AppleScriptObjC\u abcoll doctest py\u编译
音频mac ast dumbdbm pyclbr
自动机_对分虚拟线程_pydoc
BaseHTTPServer_内置保险伪_线程pydoc_数据
Bastion编解码器轻松安装pyexpat
CFNetwork(编解码器)cn email pylab
CFOpenDirectory(编解码器)香港编码pytz
CGIHTTP服务器编解码器iso2022 errno quopri
Canvas\u编解码器\u jp异常随机
碳编解码器
Cocoa\u编解码器\u tw文件CMP读线
CodeWarrior\u集合文件输入报告
协作_CSVFinderTools资源
颜色选择器类型fnmatch rexec
ConfigParser\u ctypes\u测试格式化程序rfc822
Cookie\u诅咒FPR格式完成器
CoreData_诅咒_面板分数robotparser
CoreFoundation _ElementTreeFTPLIB runpy
CoreGraphics _functoolssched
CoreLocation\u hashlib future\u内置scipy
CoreText\u heapq gc选择
对话框\u热快照常规路径集
DictionaryServices\u io gensuitemodule设置工具
DocXMLRPCServer_json格式塔sgmllib
EasyDialogs_locale getopt sha
例外处理lsprofGetPass搁置
Explorer\u多字节编解码器gettext shlex
FSEvents\u多处理全局程序
FileDialog\u osx\u支持grp信号
Finder_pyo gzip站点
FixTk_随机哈希库smtpd
基金会SyExchange HEAPQ SMTPD2
框架_套接字hmac smtplib
HTMLPasser\u sqlite3热点sndhdr
IN_sre htmlentitydefs套接字
InputMethodKit_ssl HTMLIB sqlite3
InstallerPlugins\u strptime httplib sre
InstantMessage _structic sre_compile
InterfaceBuilderKit\u符号icglue sre\u常量
JavaScriptCore\u系统配置数据icopen sre\u解析
最新语义映射_testcapiidlelib ssl
启动服务\u线程\u本地ihooks统计
MacOS_tkinter imageop STATVS
消息\u警告imaplib字符串
MimeWriter_weakref imghdr stringold
MiniAEFrame_weakrefset imp stringprep
Nav abc importlib strop
Netscape aepack输入结构
OSA工具检查子流程
OpenDirectory AEIO sunau
OpenSSL aifc itertools sunaudio
PixMapGraph json符号
首选项窗格反重力关键字符号表
PubSub anydbm lib2to3系统
PyObjCTools applesingle linecache系统配置
PyRSS2Gen appletrawmain区域设置系统日志
QTKit appletrunner日志记录选项卡Nanny
石英argparse macerrors tarfile
队列argvemulator macholib telnetlib
屏幕保护程序阵列macostools临时文件
脚本桥ast macpath终端命令
滚动文本异步macresource termios
SearchKit asyncore macurl2path测试
服务