0

在我的 ubutun 12.0.4 系统上安装 Sublime Clang 时遇到问题。我按照以下说明操作: https ://github.com/quarnster/SublimeClang 但是当我进入步骤时:

pythonbrew install --configure="--enable-unicode=ucs4" 2.6

它报告了一个错误:

ERROR: Failed to install Python-2.6. See /home/chen/.pythonbrew/log/build.log to see why.
The error detail is:
    Traceback (most recent call last):
      File "./setup.py", line 1904, in <module>
        main()
      File "./setup.py", line 1899, in main
        'Lib/smtpd.py']
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/dist.py", line 975, in run_commands
        self.run_command(cmd)
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/dist.py", line 995, in run_command
        cmd_obj.run()
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/command/build.py", line 134, in run
        self.run_command(cmd_name)
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/cmd.py", line 333, in run_command
        self.distribution.run_command(command)
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/dist.py", line 995, in run_command
        cmd_obj.run()
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/distutils/command/build_ext.py", line 343, in run
        self.build_extensions()
      File "./setup.py", line 104, in build_extensions
        missing = self.detect_modules()
      File "./setup.py", line 962, in detect_modules
        sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
      File "/home/chen/.pythonbrew/build/Python-2.6/Lib/posixpath.py", line 119, in dirname
        i = p.rfind('/') + 1
    AttributeError: 'NoneType' object has no attribute 'rfind'

我的 python 版本是 Python 2.7.3(默认,2012 年 8 月 1 日,05:14:39)[GCC 4.6.3] on linux2

不是要求的2.6。我不知道发生了什么以及如何解决这个问题。有人可以给我一些帮助吗?多谢。

4

1 回答 1

0

我已经解决了这个问题,这是一个python安装问题,你可以通过重命名/user/include/文件夹下的sqlite3.h来跳过这个错误

于 2012-12-19T14:04:53.483 回答