[Tips] bzr Import error

# bazzar error on Mac Marvericks:python

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 bzrlibci

 

# Solutionit

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

 

$ sudo nano /usr/local/bin/bzr ast

   change from:import

   #!/usr/bin/pythonmodule

   to:sed

   #!/usr/bin/python2.6im

相關文章
相關標籤/搜索