简体   繁体   English

无法安装llvmpy“无法打开文件llvmpy / build.py”

[英]Cannot install llvmpy “can't open file 'llvmpy/build.py'”

I have some trouble installing llvmpy on ubuntu 14.04, i downloaded llvmpy from llvmpy.org and installed llvm 3.4 via apt-get , when I try to install it using 我在ubuntu 14.04上安装llvmpy时遇到一些麻烦,当我尝试使用ubuntu 14.04从llvmpy.org下载llvmpy并通过apt-get安装llvm 3.4时,

python setup.py install

I get this error: 我收到此错误:

Error: could not invoke ['llvm-config', '--version']
Try setting LLVM_CONFIG_PATH=/path/to/llvm-config

Then i used 然后我用

LLVM_CONFIG_PATH=/usr/lib/llvm-3.4/bin/llvm-config python setup.py install

and i got 我得到了

LLVM version = u'3.4'
LLVM targets = 
Generate intrinsic IDs
Searching shared library libLLVM-3.4 in /usr/lib/llvm-3.4/lib
Using dynamic linking
/usr/bin/python: can't open file 'llvmpy/build.py': [Errno 2] No such file or directory
Traceback (most recent call last):
  File "setup.py", line 142, in <module>
    check_call([sys.executable, 'llvmpy/build.py'])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', 
'llvmpy/build.py']'    returned non-zero exit status 2

How can I solve this? 我该如何解决?

If you got it from the tar.gz file available at https://pypi.python.org/packages/source/l/llvmpy/llvmpy-0.12.4.tar.gz , it is incomplete, try download as a zip from github https://github.com/llvmpy/llvmpy 如果您从https://pypi.python.org/packages/source/l/llvmpy/llvmpy-0.12.4.tar.gz中提供的tar.gz文件中获取了该文件,则该文件不完整,请尝试从zip下载github https://github.com/llvmpy/llvmpy

Or directly via git commands 或直接通过git命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM