Closed disadone closed 1 year ago
Dear Xiaodong,
It looks like there are two issues here: a C-API incompatibility error and a numpy
import error.
Regarding the C-API incompatibility error, the error message suggests that the numpy
version being used is not compatible with the version that the pandas-genomics
module was compiled against. You can try to solve this by following the instructions in the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility. Specifically, you can try upgrading numpy
to the latest version by running pip install --upgrade numpy
. If that doesn't work, you can try downgrading numpy
to the version specified in the error message by running `pip install numpy==1.24.3 (the latest version validated with Pandas-Genomics).
Another alternative I encourage you to pursue is to create a new virtual environment with your own Python 3.10 installation, install Pandas-Genomics (which will automatically install Numpy as a dependency), and check if your script runs successfully within that environment.
To create a new virtual environment, you can follow these steps:
Please feel free to ask any further questions or share your success in running Pandas-Genomics.
Andre
While running the example
It reports
run on google colab and install pandas-genomics using pypi and github