[Tips] bzr Import error

# bazzar error on Mac Marvericks:

192:~ piaoger$ bzr
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 74, in <module>
    import bzrlib
ImportError: No module named bzrlib

 

# Solution

Python2.6 should be used for bazzar while Python27 is the default edition on Mac Marvericks.

 

$ sudo nano /usr/local/bin/bzr

   change from:

   #!/usr/bin/python

   to:

   #!/usr/bin/python2.6

posted on 2013-12-13 23:30  飘行天下  阅读(496)  评论(0编辑  收藏  举报

导航