无法使用 conda install 或 pip 安装 scanpy 包
Not able to install scanpy package using conda install or pip
我一直在尝试使用
在 anaconda 中安装 scanpy 包
conda install scanpy
它对一些无法解决的错误不起作用。然后我尝试使用
pip install scanpy
它给了我一个涉及 llvmlite
的错误
我也安装了 llvmlite 但它仍然无法正常工作。它显示了以下错误。
Building wheel for llvmlite (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /media/asif/LocalDisc1/anaconda3/envs/scRNAseq/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kgjl38x2
cwd: /tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/
Complete output (26 lines):
running bdist_wheel
/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/bin/python3.9 /tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 107, in main_posix
raise RuntimeError("%s failed executing, please point LLVM_CONFIG "
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/bin/python3.9' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
在您的错误日志中您可以看到
please point LLVM_CONFIG to the path for llvm-config
这可能意味着您必须在 ~/.bashrc 中设置 LLVM_CONFIG,例如
export LLVM_CONFIG=/usr/local/opt/llvm@9/bin/llvm-config
做完之后记得source一下
source ~/.bashrc or . ~/.bashrc
我一直在尝试使用
在 anaconda 中安装 scanpy 包conda install scanpy
它对一些无法解决的错误不起作用。然后我尝试使用
pip install scanpy
它给了我一个涉及 llvmlite
的错误
我也安装了 llvmlite 但它仍然无法正常工作。它显示了以下错误。
Building wheel for llvmlite (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /media/asif/LocalDisc1/anaconda3/envs/scRNAseq/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kgjl38x2
cwd: /tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/
Complete output (26 lines):
running bdist_wheel
/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/bin/python3.9 /tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-jau3fq4a/llvmlite_c960ef5cb4c84cd089c0efb72aecc497/ffi/build.py", line 107, in main_posix
raise RuntimeError("%s failed executing, please point LLVM_CONFIG "
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/media/asif/LocalDisc1/anaconda3/envs/scRNAseq/bin/python3.9' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
在您的错误日志中您可以看到
please point LLVM_CONFIG to the path for llvm-config
这可能意味着您必须在 ~/.bashrc 中设置 LLVM_CONFIG,例如
export LLVM_CONFIG=/usr/local/opt/llvm@9/bin/llvm-config
做完之后记得source一下
source ~/.bashrc or . ~/.bashrc