View difference between Paste ID: V56KXzFT and pLX0L46p
SHOW: | | - or go back to the newest paste.
1
me@medev:/var/lib/mongodb$ sudo apt-get install python-pymongo
2-
[sudo] password for jlee: 
2+
[sudo] password for me: 
3
Reading package lists... Done
4
Building dependency tree       
5
Reading state information... Done
6
The following packages were automatically installed and are no longer required:
7
  ttf-umefont wine1.4-i386 wine1.4-common wine1.4 libcapi20-3 firefox-globalmenu winetricks libmpg123-0 ttf-unfonts-core libopenvg1-mesa fonts-droid ttf-droid
8
Use 'apt-get autoremove' to remove them.
9
The following extra packages will be installed:
10
  python-bson python-gridfs
11
The following NEW packages will be installed:
12
  python-bson python-gridfs python-pymongo
13
0 upgraded, 3 newly installed, 0 to remove and 376 not upgraded.
14
Need to get 128 kB of archives.
15
After this operation, 650 kB of additional disk space will be used.
16
Do you want to continue [Y/n]? Y
17
Get:1 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main python-bson i386 2.1-1ubuntu0.1 [34.7 kB]
18
Get:2 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main python-gridfs all 2.1-1ubuntu0.1 [10.6 kB]
19
Get:3 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main python-pymongo i386 2.1-1ubuntu0.1 [82.9 kB]
20
Fetched 128 kB in 0s (146 kB/s)          
21
Selecting previously unselected package python-bson.
22
(Reading database ... 262638 files and directories currently installed.)
23
Unpacking python-bson (from .../python-bson_2.1-1ubuntu0.1_i386.deb) ...
24
Selecting previously unselected package python-gridfs.
25
Unpacking python-gridfs (from .../python-gridfs_2.1-1ubuntu0.1_all.deb) ...
26
Selecting previously unselected package python-pymongo.
27
Unpacking python-pymongo (from .../python-pymongo_2.1-1ubuntu0.1_i386.deb) ...
28
Setting up python-bson (2.1-1ubuntu0.1) ...
29
Setting up python-gridfs (2.1-1ubuntu0.1) ...
30
Setting up python-pymongo (2.1-1ubuntu0.1) ...
31
32
33
and then to test it... 
34
35
me@medev:/var/lib/mongodb$ python
36
Python 2.7.8 (default, Nov  5 2014, 15:18:10) 
37
[GCC 4.6.3] on linux2
38
Type "help", "copyright", "credits" or "license" for more information.
39
>>> import pymongo
40
Traceback (most recent call last):
41
  File "<stdin>", line 1, in <module>
42
ImportError: No module named pymongo
43
>>>