相关疑难解决方法(0)

未能导入pymongo ubuntu

我目前正在使用mongodb 2.2和pymongo 2.3版运行Ubuntu 12.04.我试图使用Twitters API收集一些信息,我在尝试导入mymongo时收到错误.这是我有的:

import pycurl, json
import pymongo


STREAM_URL = "https://stream.twitter.com/1/statuses/filter.json"
WORDS = "track=#obama"
USER = "myuser"
PASS = "mypass"
Run Code Online (Sandbox Code Playgroud)

ImportError:没有名为pymongo的模块有什么想法吗?

python mongodb pymongo

7
推荐指数
2
解决办法
1万
查看次数

pymongo:ImportError:没有名为pymongo的模块

我成功安装了pymongo使用 pip3

Aleeshas-MacBook-Air:project 2 aleesha$ sudo pip3 install pymongo
The directory '/Users/aleesha/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/aleesha/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip …
Run Code Online (Sandbox Code Playgroud)

python mongodb pymongo python-3.x pymongo-3.x

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

mongodb ×2

pymongo ×2

python ×2

pymongo-3.x ×1

python-3.x ×1