This is a created article in which the information may have evolved or changed.
MgO is a third party provided by the Golang Connection MongoDB Library, use the following command to download
go get labix.org/v2/mgo
Will go wrong, say no install BZR,BZR is the version control software used by MgO, full name bazaar, you can download the version of each operating system in Http://wiki.bazaar.canonical.com/Download. BZR after installation, execute the download command above, may be error, the following errors
bzr: ERROR: Couldn't import bzrlib and dependencies.Please check the directory containing bzrlib is on your PYTHONPATH.Traceback (most recent call last): File "/usr/local/bin/bzr", line 102, in <module> import bzrlibImportError: No module named bzrlib
Check the Internet because BZR is using the python2.6 version, using PYTHON-V to view the 2.7 version of the native installation, you need to drop the version.
Enter the/usr/local/bin/directory, use VI or VIM to modify the Bzr file, modify the first line: #!/usr/bin/python for #!/usr/bin/python2.6, save exit. Use the previous download command to download MgO successfully. Due to the speed problem, it may take a few more times.