OSX如何整合Python 2的安装?I';我得到了不一致的模块导入错误
为这一常见的业余错误道歉,似乎是因为安装冲突 我在脚本上遇到“导入错误”,无法找到“请求”模块;直到我看到python的启动路径是“/usr/bin/python2.7”时,这才有意义 这与在我的系统上从终端运行的Python版本不同。我从通用网站上的二进制文件安装了Python。在终端中启动“/usr/bin/python2.7”时,然后通过帮助(“模块”)检查模块:OSX如何整合Python 2的安装?I';我得到了不一致的模块导入错误,python,macos,python-2.7,Python,Macos,Python 2.7,为这一常见的业余错误道歉,似乎是因为安装冲突 我在脚本上遇到“导入错误”,无法找到“请求”模块;直到我看到python的启动路径是“/usr/bin/python2.7”时,这才有意义 这与在我的系统上从终端运行的Python版本不同。我从通用网站上的二进制文件安装了Python。在终端中启动“/usr/bin/python2.7”时,然后通过帮助(“模块”)检查模块: 请稍候,我正在收集所有可用模块的列表。。。 在路径处使用库: -/Library/Frameworks/R.framework
请稍候,我正在收集所有可用模块的列表。。。
在路径处使用库:
-/Library/Frameworks/R.framework/Versions/3.5/Resources/Library
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/Python/PyObjC/objc/_bridgesupport.py:674:RuntimeWarning:解析AVFoundation的bridgesupport数据时出错:PyObjCRT_skiptypec:Unhandled type'5d']}
警告。警告(“分析%s:%s的桥接支持数据时出错”%(frameworkName,e),运行时警告)
2018-08-07 15:30:19.211 Python[2016:33399]找不到Cbundle 0x7fa27ed88730的可执行文件(未加载)
AVFoundation_u___;dl pwd
账户_u未来_; doctest py2app
地址簿\u abcoll dumbdbm py\u编译
应用套件\u ast虚拟\u线程pyclbr
AppleScriptKit_对分虚拟_线程pydoc
AppleScriptObjC内置Insuites轻松安装pydoc数据
音频mac编解码器电子邮件pyexpat
自动机(编解码器)(编解码器)(编解码器)
BaseHTTPServer _编解码器_HKEnsureIP pylab
Bastion编解码器iso2022错误码解析
网络编解码器jp例外pytz
CFOpenDirectory(编解码器)kr fcntl quopri
CGIHTTPServer\u编解码器\u tw filecmp random
Canvas\u集合文件输入rapi
碳纤维csv findertools re
Cocoa\u ctypes fnmatch readline
CodeWarrior\u ctypes\u测试格式化程序报告
协作(fpformat资源)
颜色选择器_诅咒_面板分数rexec
ConfigParser\u elementtree ftplib rfc822
Cookie _functoolsfunctools rlcompleter
CoreData\u hashlib future\u内置机器人解析器
CoreFoundation\u heapq gc
CoreGraphics\u hotshot genericpath runpy
CoreLocation\u io gensuitemodule调度
CoreText\u json格式塔scipy
对话框_localegetopt select
DictionaryServiceslsprofGetPass集合
DocXMLRPCServer\u markerlib gettext设置工具
EasyDialogs\u多字节编解码器全局sgmllib
EventKit\u多处理grp sha
例外处理(osx)支持gzip搁置
Explorer_pyio hashlib shlex
FSEvents\u随机heapq shutil
FileDialog\u scproxy hmac信号
查找器\u插座热快照站点
FixTk_sqlite3 htmlentitydefs六
基金会
框架_sslhttplib smtplib
HTMLPasser\u strTime ic sndhdr
内置结构icglue插座
InputMethodKit_符号表icopen sqlite3
InstallerPlugins\u sysconfigdata idlelib sre
InstantMessage\u testcapi ihooks sre\u编译
JavaScriptCore线程本地imageop sre常量
最新语义映射
启动服务\u警告imghdr ssl
MacOS_weakref imp统计
消息_weakrefsetimportlib statvs
MIMEWITER abc输入字符串
MiniAEFrame aepack检查stringold
导航AEIO stringprep工具
Netscape aetypes itertools strop
OSAFC json结构
OpenDirectory altgraph关键字子进程
OpenSSL反重力lib2to3 sunau
PixMapWrapper anydbm linecache sunaudio
首选项窗格应用单行编辑符号
PubSub appletrawmain区域设置符号表
PyObjCTools appletrunner日志记录系统
QTKit argparse macerrors sysconfig
石英模拟机macholib系统日志
队列数组macostools tabnanny
屏幕保护程序ast macpath文件
ScriptingBridge asynchat macresource telnetlib
滚动文本异步存储macurl2path临时文件
SearchKit atexit邮箱终端命令
服务管理audiodev mailcap termios
SimpleDialog audioop标记基测试
SimpleHTTPServer自动GIL封送处理测试
SimpleXMLRPCServer base64 ma
Please wait a moment while I gather a list of all available modules...
Using library at path:
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py:674: RuntimeWarning: Error parsing BridgeSupport data for AVFoundation: PyObjCRT_SkipTypeSpec: Unhandled type '5d' ]}
warnings.warn("Error parsing BridgeSupport data for %s: %s" % (frameworkName, e), RuntimeWarning)
2018-08-07 15:30:19.211 Python[2016:33399] Cannot find executable for CFBundle 0x7fa27ed88730 </System/Library/Frameworks/Message.framework> (not loaded)
AVFoundation __builtin__ dl pwd
Accounts __future__ doctest py2app
AddressBook _abcoll dumbdbm py_compile
AppKit _ast dummy_thread pyclbr
AppleScriptKit _bisect dummy_threading pydoc
AppleScriptObjC _builtinSuites easy_install pydoc_data
Audio_mac _codecs email pyexpat
Automator _codecs_cn encodings pygments
BaseHTTPServer _codecs_hk ensurepip pylab
Bastion _codecs_iso2022 errno pyparsing
CFNetwork _codecs_jp exceptions pytz
CFOpenDirectory _codecs_kr fcntl quopri
CGIHTTPServer _codecs_tw filecmp random
Canvas _collections fileinput rapi
Carbon _csv findertools re
Cocoa _ctypes fnmatch readline
CodeWarrior _ctypes_test formatter repr
Collaboration _curses fpformat resource
ColorPicker _curses_panel fractions rexec
ConfigParser _elementtree ftplib rfc822
Cookie _functools functools rlcompleter
CoreData _hashlib future_builtins robotparser
CoreFoundation _heapq gc rtichoke
CoreGraphics _hotshot genericpath runpy
CoreLocation _io gensuitemodule sched
CoreText _json gestalt scipy
Dialog _locale getopt select
DictionaryServices _lsprof getpass sets
DocXMLRPCServer _markerlib gettext setuptools
EasyDialogs _multibytecodec glob sgmllib
EventKit _multiprocessing grp sha
ExceptionHandling _osx_support gzip shelve
Explorer _pyio hashlib shlex
FSEvents _random heapq shutil
FileDialog _scproxy hmac signal
Finder _socket hotshot site
FixTk _sqlite3 htmlentitydefs six
Foundation _sre htmllib smtpd
FrameWork _ssl httplib smtplib
HTMLParser _strptime ic sndhdr
IN _struct icglue socket
InputMethodKit _symtable icopen sqlite3
InstallerPlugins _sysconfigdata idlelib sre
InstantMessage _testcapi ihooks sre_compile
JavaScriptCore _threading_local imageop sre_constants
LatentSemanticMapping _tkinter imaplib sre_parse
LaunchServices _warnings imghdr ssl
MacOS _weakref imp stat
Message _weakrefset importlib statvfs
MimeWriter abc imputil string
MiniAEFrame aepack inspect stringold
Nav aetools io stringprep
Netscape aetypes itertools strop
OSATerminology aifc json struct
OpenDirectory altgraph keyword subprocess
OpenSSL antigravity lib2to3 sunau
PixMapWrapper anydbm linecache sunaudio
PreferencePanes applesingle lineedit symbol
PubSub appletrawmain locale symtable
PyObjCTools appletrunner logging sys
QTKit argparse macerrors sysconfig
Quartz argvemulator macholib syslog
Queue array macostools tabnanny
ScreenSaver ast macpath tarfile
ScriptingBridge asynchat macresource telnetlib
ScrolledText asyncore macurl2path tempfile
SearchKit atexit mailbox terminalcommand
ServiceManagement audiodev mailcap termios
SimpleDialog audioop markupbase test
SimpleHTTPServer autoGIL marshal tests
SimpleXMLRPCServer base64 math textwrap
Social bdb matplotlib this
SocketServer bdist_mpkg md5 thread
StdSuites bgenlocations mhlib threading
StringIO binascii mimetools time
SyncServices binhex mimetypes timeit
SystemConfiguration bisect mimify tkColorChooser
SystemEvents bonjour mmap tkCommonDialog
Tix bsddb modulefinder tkFileDialog
Tkconstants bsddb185 modulegraph tkFont
Tkdnd buildtools multifile tkMessageBox
Tkinter bundlebuilder multipledispatch tkSimpleDialog
UserDict bz2 multiprocessing toaiff
UserList cPickle mutex token
UserString cProfile netrc tokenize
WebKit cStringIO new trace
_AE calendar nis traceback
_AH cfmfile nntplib ttk
_App cgi ntpath tty
_CF cgitb nturl2path turtle
_CG chunk numbers types
_CarbonEvt cmath numpy unicodedata
_Cm cmd objc unittest
_Ctl code opcode urllib
_Dlg codecs operator urllib2
_Drag codeop optparse urlparse
_Evt collections os user
_File colorsys os2emxpath uu
_Fm commands parser uuid
_Folder compileall pdb videoreader
_Help compiler pickle warnings
_IBCarbon contextlib pickletools wave
_Icn cookielib pimp wcwidth
_LWPCookieJar copy pip weakref
_Launch copy_reg pipes webbrowser
_List crypt pkg_resources whichdb
_Menu csv pkgutil wsgiref
_Mlte ctypes platform xattr
_MozillaCookieJar curses plistlib xdrlib
_OSA datetime popen2 xml
_Qd dateutil poplib xmllib
_Qdoffs dbhash posix xmlrpclib
_Qt dbm posixfile xxsubtype
_Res decimal posixpath zipfile
_Scrap difflib pprint zipimport
_Snd dircache profile zlib
_TE dis pstats zope
_Win distutils pty
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".