Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'ot' #2

Closed
sgbaird opened this issue Oct 17, 2021 · 1 comment
Closed

ModuleNotFoundError: No module named 'ot' #2

sgbaird opened this issue Oct 17, 2021 · 1 comment

Comments

@sgbaird
Copy link

sgbaird commented Oct 17, 2021

After following the instructions in the README:

(mat_discover_test) C:\Users\sterg\Documents\GitHub\scratch\EleMD>python
Python 3.9.7 | packaged by conda-forge | (default, Sep 
29 2021, 19:15:42) [MSC v.1916 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.
>>> import EleMD
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\sterg\Documents\GitHub\scratch\EleMD\EleMD\__init__.py", line 1, in <module>
    from EleMD.elemd import EleMD
  File "C:\Users\sterg\Documents\GitHub\scratch\EleMD\EleMD\elemd.py", line 4, in <module>
    from ot import emd2
ModuleNotFoundError: No module named 'ot'

After checking the POT website:

Note that due to a limitation of pip, cython and numpy need to be installed prior to installing POT. This can be done easily with

pip install numpy cython
You can install the toolbox through PyPI with:

pip install POT

After this, I was able to import ot.

CompRhys added a commit that referenced this issue Oct 17, 2021
@CompRhys
Copy link
Owner

I just had the requirements split out in requirements.txt files but have now also added to setup.py, thanks for raising!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants