Closed tommedema closed 2 years ago
Thanks for the detailed information. The installed numpy version is not binary compatible with the newest version (which is used to compile the software because pip uses isolated builds by default nowadays). Adding --no-build-isolation
to the pip command should resolve this (or updating numpy). It then uses the version you have installed. Let me know if it doesn’t work.
@wannesm hmm, so I already have the latest version of numpy (tried to reinstall it too and force upgrade with pip install numpy --upgrade
).
I then tried --no-build-isolation too:
pip install -vvv --upgrade --force-reinstall --no-deps --no-build-isolation --no-binary dtaidistance dtaidistance
Here's the output:
https://gist.github.com/tommedema/abdfcc7f7fa3266ce809e25d5c581be4
When I run my notebook I still get:
Cannot import Numpy-based library (dtw_cc_numpy) [ full output ]
I also tried using pip3 instead of pip, but this made no difference.
Is it possible that my Jupyter notebook is picking up the dtaidistance I compiled myself rather than the one pip is trying to re-install? If so how would I uninstall the version I compiled myself?
@wannesm actually, it worked! I had to restart my notebook's kernel. Thank you so much.
First, this library is amazing, thanks for all the hard work. 🙌
I'm on a Macbook Pro with macOS Monterey 12.5 and am having trouble enabling c for subsequence_alignment.
I've installed both with pip and from source, but the issue remains.
I've tried:
And installed from source too following the docs.
When I include
dtw.try_import_c(verbose=True)
this is the output: