I was trying to run the examples in the Plotly datashader section. I ran into some installation problems. I have searched the internet for answers but could not figure out a solution. So posting here.
When I tried to run a simple datashader example, I got this error message:
ModuleNotFoundError: No module named ‘datashader’
So I tried to pip install datashader in the terminal on Mac:
pip3 install datashader
I get error messages. I think the main one is:
FileNotFoundError: [Errno 2] No such file or directory: ‘llvm-config’
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/5c/lp_pw8fj7gsfw6gl8mxhntx80000gn/T/pip-install-ypb_lsyn/llvmlite_6cdd4eb257854194b6ca0b29974c1bae/setup.py’“'”‘; file=’“'”‘/private/var/folders/5c/lp_pw8fj7gsfw6gl8mxhntx80000gn/T/pip-install-ypb_lsyn/llvmlite_6cdd4eb257854194b6ca0b29974c1bae/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 /private/var/folders/5c/lp_pw8fj7gsfw6gl8mxhntx80000gn/T/pip-wheel-3wwjgnuo
cwd: /private/var/folders/5c/lp_pw8fj7gsfw6gl8mxhntx80000gn/T/pip-install-ypb_lsyn/llvmlite_6cdd4eb257854194b6ca0b29974c1bae/
Complete output (26 lines):
running bdist_wheel
/usr/local/opt/python@3.9/bin/python3.9 /private/var/folders/5c/lp_pw8fj7gsfw6gl8mxhntx80000gn/T/pip-install-ypb_lsyn/llvmlite_6cdd4eb257854194b6ca0b29974c1bae/ffi/build.py
LLVM version… Traceback (most recent call last):
File “/private/var/folders/5c/lp_pw8fj7gsfw6gl8mxhntx80000gn/T/pip-install-ypb_lsyn/llvmlite_6cdd4eb257854194b6ca0b29974c1bae/ffi/build.py”, line 105, in main_posix
out = subprocess.check_output([llvm_config, ‘–version’])
File “/usr/local/Cellar/python@3.9/3.9.1_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py”, line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/local/Cellar/python@3.9/3.9.1_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py”, line 501, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/local/Cellar/python@3.9/3.9.1_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py”, line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/local/Cellar/python@3.9/3.9.1_3/Frameworks/Python.framework/Versions/3.9/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’
How can I resolve this error such that I can get datashader to install ?
My environment specs are:
Mac (Catalina)
Python 3.9.1 (virtual env)
Many Thanks !