python - llvmpy on Ubuntu 14.04 -
i trying install llvmpy on ubuntu 14.04.
uname -a linux -esktop 3.13.0-30-generic #55-ubuntu smp fri jul 4 21:40:53 utc 2014 x86_64 x86_64 x86_64 gnu/linux lsb_release -a lsb version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch distributor id: ubuntu description: ubuntu 14.04.1 lts release: 14.04 codename: trusty
sudo pip install llvmpy fails. end of output is
cleaning up... command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/llvmpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7hvrcb-record/install-record.txt --single-version-externally-managed --compile failed error code 1 in /tmp/pip_build_root/llvmpy traceback (most recent call last): file "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', 'console_scripts', 'pip')() file "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main return command.main(cmd_args) file "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) unicodedecodeerror: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)
i have llvm version 3.4 installed. full output @ http://paste.ubuntu.com/8074574/ .
llvmpy requires llvm 3.3 @ moment. available, not default on ubuntu 14.04 (which defaults newer llvm 3.4). first, install llvm3.3:
sudo apt-get install llvm-3.3 llvm-3.3-runtime
then, need tell pip use older llvm.
sudo sh -c "llvm_config_path=/usr/bin/llvm-config-3.3 pip install llvmpy"
the above should work python3 using pip3
Comments
Post a Comment