Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me@medev:/var/lib/mongodb$ sudo apt-get install python-pymongo
- [sudo] password for me:
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- 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
- Use 'apt-get autoremove' to remove them.
- The following extra packages will be installed:
- python-bson python-gridfs
- The following NEW packages will be installed:
- python-bson python-gridfs python-pymongo
- 0 upgraded, 3 newly installed, 0 to remove and 376 not upgraded.
- Need to get 128 kB of archives.
- After this operation, 650 kB of additional disk space will be used.
- Do you want to continue [Y/n]? Y
- Get:1 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main python-bson i386 2.1-1ubuntu0.1 [34.7 kB]
- Get:2 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main python-gridfs all 2.1-1ubuntu0.1 [10.6 kB]
- Get:3 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main python-pymongo i386 2.1-1ubuntu0.1 [82.9 kB]
- Fetched 128 kB in 0s (146 kB/s)
- Selecting previously unselected package python-bson.
- (Reading database ... 262638 files and directories currently installed.)
- Unpacking python-bson (from .../python-bson_2.1-1ubuntu0.1_i386.deb) ...
- Selecting previously unselected package python-gridfs.
- Unpacking python-gridfs (from .../python-gridfs_2.1-1ubuntu0.1_all.deb) ...
- Selecting previously unselected package python-pymongo.
- Unpacking python-pymongo (from .../python-pymongo_2.1-1ubuntu0.1_i386.deb) ...
- Setting up python-bson (2.1-1ubuntu0.1) ...
- Setting up python-gridfs (2.1-1ubuntu0.1) ...
- Setting up python-pymongo (2.1-1ubuntu0.1) ...
- and then to test it...
- me@medev:/var/lib/mongodb$ python
- Python 2.7.8 (default, Nov 5 2014, 15:18:10)
- [GCC 4.6.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import pymongo
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: No module named pymongo
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement