blast

Why is Python's shutil.which() not working?

Why is Python's shutil.which() not working? Question: I’m trying to see if shutil.which() works for finding the blastn command from NCBI’s BLAST. Running which blastn on my terminal results in /usr/local/bin/blastn. However, if I do shutil.which(“blastn”), it simply returns None. Searching for Python works fine, as shutil.which(“python”) returns /usr/bin/python. Why is this happening? Asked By: …

Total answers: 2