wannesm / dtaidistance

Time series distances: Dynamic Time Warping (fast DTW implementation in C)
Other
1.08k stars 184 forks source link

Error when installing with Anaconda #125

Closed cloudy-sfu closed 3 years ago

cloudy-sfu commented 3 years ago

Ubuntu 20.04 + Python 3.9 + Anaconda

I activated my_env in Anaconda and run

pip install --global-option=--noopenmp dtaidistance

However, there is

ImportError: No module named dtaidistance

If I activate base in Anaconda, the module can be imported. However, the system python and other conda environments cannot import.

cloudy-sfu commented 3 years ago

Solved. Usually, in the anaconda environment, pip install will call the pip in the virtual environment. However, dtaidistance is installed in the base environment. Use

python -m pip install dtaidistance

can solve this problem