首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >设置PyMongo

设置PyMongo
EN

Stack Overflow用户
提问于 2014-09-02 04:14:30
回答 1查看 158关注 0票数 0

不要紧,需要执行pip install --update pymongo

我正在关注这个页面- http://api.mongodb.org/python/current/tutorial.html

当我输入的时候

代码语言:javascript
复制
from pymongo import MongoClient

我得到了这个错误。我做错了什么?

代码语言:javascript
复制
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Error in sys.excepthook:
Traceback (most recent call last):
  File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/sitecustomize.py", line 44, in tm_excepthook
    io = fdopen(error_fd, 'wb', 0)
OSError: [Errno 9] Bad file descriptor

Original exception was:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable
EN

回答 1

Stack Overflow用户

发布于 2014-09-02 04:48:57

这实际上是由于一个旧版本的pymongo。pip安装--更新pymongo修复了它

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25612426

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档