尝试在我的Mac OS 10.6.8(使用python 2.6.1)上安装numpy和pandas后,每次尝试安装库(如pandas和numpy)时都会遇到一个大错误。我之前没有见过它,我不能谷歌我的出路。
这是错误:
Exception:
Traceback (most recent call last):
File "/private/tmp/pip_build_root/pip/pip/basecommand.py", line 215, in main
File "/private/tmp/pip_build_root/pip/pip/commands/install.py", line 339, in run
File "/private/tmp/pip_build_root/pip/pip/req/req_set.py", line 235, in prepare_files
File "/private/tmp/pip_build_root/pip/pip/index.py", line 305, in find_requirement
File "/private/tmp/pip_build_root/pip/pip/index.py", line 795, in _get_page
File "/private/tmp/pip_build_root/pip/pip/index.py", line 884, in get_page
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/sessions.py", line 473, in get
File "/private/tmp/pip_build_root/pip/pip/download.py", line 332, in request
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/sessions.py", line 461, in request
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/sessions.py", line 610, in send
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/models.py", line 728, in content
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/models.py", line 653, in generate
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/packages/urllib3/response.py", line 256, in stream
File "/private/tmp/pip_build_root/pip/pip/_vendor/requests/packages/urllib3/response.py", line 186, in read
File "/private/tmp/pip_build_root/pip/pip/_vendor/cachecontrol/filewrapper.py", line 54, in read
File "/private/tmp/pip_build_root/pip/pip/_vendor/cachecontrol/controller.py", line 213, in cache_response
File "/private/tmp/pip_build_root/pip/pip/download.py", line 239, in set
File "/private/tmp/pip_build_root/pip/pip/_vendor/cachecontrol/caches/file_cache.py", line 83, in set
File "/private/tmp/pip_build_root/pip/pip/_vendor/lockfile/__init__.py", line 173, in __init__
TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==6.0.3', 'console_scripts', 'pip')()
File "/private/tmp/pip_build_root/pip/pip/__init__.py", line 217, in main
File "/private/tmp/pip_build_root/pip/pip/basecommand.py", line 241, in main
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 1065, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 1129, in _log
self.handle(record)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 1139, in handle
self.callHandlers(record)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 1176, in callHandlers
hdlr.handle(record)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 658, in handle
rv = self.filter(record)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 558, in filter
for f in self.filters:
AttributeError: BetterRotatingFileHandler instance has no attribute 'filters'
关于我能做什么以便能够安装库的任何想法(这可能是pip的问题吗?)