Closed cmatKhan closed 1 year ago
pybedtools needs compilation of some C++/Cython code. Do you happen to have Cython in that environment?
I ended up switching to Poetry, rather than Pipenv, but the error message is the same. I do have cython in my environment:
> poetry show cython
name : cython
version : 0.29.30
description : The Cython compiler for writing C extensions for the Python language.
It seems like this is the problem:
pybedtools/cbedtools.cpp:35:10: fatal error: Python.h: No such file or directory
35 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
But, by the same token, it seems like if there was a missing file, there would be other issues reports. So, not sure.
Ok -- my fault. I hadn't updated my python3-dev when i upgraded from 3.8 to 3.9...my bad. If anyone else happens to run into this, on a debian OS, do this:
sudo apt-get install python<version>-dev
eg, I am currently using python 3.9.13:
sudo apt-get install python3.9-dev
I am having trouble installing pybedtools using pipenv:
I'd appreciate any suggestions -- thank you!