首页 > 代码库 > 在32位的 elementary OS 上面安装出错

在32位的 elementary OS 上面安装出错

root@xiaohui-Lenovo-V580:~# sudo pip install douban.fm
Downloading/unpacking douban.fm
  Downloading douban.fm-0.2.13.tar.gz
  Running setup.py (path:/tmp/pip_build_root/douban.fm/setup.py) egg_info for package douban.fm
    
Requirement already satisfied (use --upgrade to upgrade): termcolor in /usr/local/lib/python3.2/dist-packages (from douban.fm)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python3.2/dist-packages (from douban.fm)
Installing collected packages: douban.fm
  Running setup.py install for douban.fm
    
    Installing douban.fm script to /usr/local/bin
      File "/usr/local/lib/python3.2/dist-packages/douban/douban_token.py", line 35
        print ‘‘‘
            ──╔╗─────╔╗────────╔═╗
            ──║║─────║║────────║╔╝
            ╔═╝╠══╦╗╔╣╚═╦══╦═╗╔╝╚╦╗╔╗
            ║╔╗║╔╗║║║║╔╗║╔╗║╔╗╬╗╔╣╚╝║
            ║╚╝║╚╝║╚╝║╚╝║╔╗║║║╠╣║║║║║
            ╚══╩══╩══╩══╩╝╚╩╝╚╩╩╝╚╩╩╝
    
            ‘‘‘
    
    
    
    
    
    
    
    
               ^
    SyntaxError: invalid syntax
    
      File "/usr/local/lib/python3.2/dist-packages/douban/lrc2dic.py", line 38
        print key, lrc_dict[key]
                ^
    SyntaxError: invalid syntax
    
      File "/usr/local/lib/python3.2/dist-packages/douban/douban.py", line 466
        print self.win.TITLE
                 ^
    SyntaxError: invalid syntax
    
      File "/usr/local/lib/python3.2/dist-packages/douban/cli.py", line 44
        print self.TITLE
                 ^
    SyntaxError: invalid syntax
    
    error: /usr/local/bin/douban.fm: No such file or directory
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__=‘/tmp/pip_build_root/douban.fm/setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record /tmp/pip-sfngu0-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib

creating build/lib/douban

copying douban/douban_token.py -> build/lib/douban

copying douban/lrc2dic.py -> build/lib/douban

copying douban/douban.py -> build/lib/douban

copying douban/cli.py -> build/lib/douban

copying douban/__init__.py -> build/lib/douban

copying douban/getch.py -> build/lib/douban

running egg_info

writing requirements to douban.fm.egg-info/requires.txt

writing douban.fm.egg-info/PKG-INFO

writing top-level names to douban.fm.egg-info/top_level.txt

writing dependency_links to douban.fm.egg-info/dependency_links.txt

writing entry points to douban.fm.egg-info/entry_points.txt

warning: manifest_maker: standard file ‘-c‘ not found



reading manifest file ‘douban.fm.egg-info/SOURCES.txt‘

writing manifest file ‘douban.fm.egg-info/SOURCES.txt‘

running install_lib

creating /usr/local/lib/python3.2/dist-packages/douban

copying build/lib/douban/douban_token.py -> /usr/local/lib/python3.2/dist-packages/douban

copying build/lib/douban/lrc2dic.py -> /usr/local/lib/python3.2/dist-packages/douban

copying build/lib/douban/douban.py -> /usr/local/lib/python3.2/dist-packages/douban

copying build/lib/douban/cli.py -> /usr/local/lib/python3.2/dist-packages/douban

copying build/lib/douban/__init__.py -> /usr/local/lib/python3.2/dist-packages/douban

copying build/lib/douban/getch.py -> /usr/local/lib/python3.2/dist-packages/douban

byte-compiling /usr/local/lib/python3.2/dist-packages/douban/douban_token.py to douban_token.cpython-32.pyc

byte-compiling /usr/local/lib/python3.2/dist-packages/douban/lrc2dic.py to lrc2dic.cpython-32.pyc

byte-compiling /usr/local/lib/python3.2/dist-packages/douban/douban.py to douban.cpython-32.pyc

byte-compiling /usr/local/lib/python3.2/dist-packages/douban/cli.py to cli.cpython-32.pyc

byte-compiling /usr/local/lib/python3.2/dist-packages/douban/__init__.py to __init__.cpython-32.pyc

byte-compiling /usr/local/lib/python3.2/dist-packages/douban/getch.py to getch.cpython-32.pyc

running install_egg_info

Copying douban.fm.egg-info to /usr/local/lib/python3.2/dist-packages/douban.fm-0.2.13.egg-info

running install_scripts

Installing douban.fm script to /usr/local/bin

  File "/usr/local/lib/python3.2/dist-packages/douban/douban_token.py", line 35

    print ‘‘‘

        ──╔╗─────╔╗────────╔═╗

        ──║║─────║║────────║╔╝

        ╔═╝╠══╦╗╔╣╚═╦══╦═╗╔╝╚╦╗╔╗

        ║╔╗║╔╗║║║║╔╗║╔╗║╔╗╬╗╔╣╚╝║

        ║╚╝║╚╝║╚╝║╚╝║╔╗║║║╠╣║║║║║

        ╚══╩══╩══╩══╩╝╚╩╝╚╩╩╝╚╩╩╝



        ‘‘‘

















           ^

SyntaxError: invalid syntax



  File "/usr/local/lib/python3.2/dist-packages/douban/lrc2dic.py", line 38

    print key, lrc_dict[key]

            ^

SyntaxError: invalid syntax



  File "/usr/local/lib/python3.2/dist-packages/douban/douban.py", line 466

    print self.win.TITLE

             ^

SyntaxError: invalid syntax



  File "/usr/local/lib/python3.2/dist-packages/douban/cli.py", line 44

    print self.TITLE

             ^

SyntaxError: invalid syntax



error: /usr/local/bin/douban.fm: No such file or directory

----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__=‘/tmp/pip_build_root/douban.fm/setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record /tmp/pip-sfngu0-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/douban.fm
Storing debug log for failure in /root/.pip/pip.log

是不是要指定用python2才行啊,怎么解决?


在32位的 elementary OS 上面安装出错