torch-two-sample icon indicating copy to clipboard operation
torch-two-sample copied to clipboard

ModuleNotFoundError: No module named 'torch_two_sample.permutation_test'

Open AndreydeAguiarSalvi opened this issue 4 years ago • 3 comments

I receive this error while trying to do this: from torch_two_sample import SmoothFRStatistic There was no error in the installation. Inside the torch_to_sample folder, I noticed that there is a permutation_test.pyx file, but not a .py file. The complete stack trace: Traceback (most recent call last): File "", line 1, in File "/media/someone/A00AA3760AA347DC/torch-two-sample/torch_two_sample/init.py", line 1, in from .statistics_diff import ( File "/media/someone/A00AA3760AA347DC/torch-two-sample/torch_two_sample/statistics_diff.py", line 9, in from .permutation_test import permutation_test_tri, permutation_test_mat ModuleNotFoundError: No module named 'torch_two_sample.permutation_test'

AndreydeAguiarSalvi avatar Sep 04 '20 13:09 AndreydeAguiarSalvi

Running the setup & install per the readme file solved this issue for me, to quote from the readme:

Installation

After installing PyTorch, you can install the package with:

python setup.py install

Testing

To run the tests you simply have to run:

python setup.py test

nkamath5 avatar May 27 '23 01:05 nkamath5

It seems that I have to download xcode for this in order to work. Is that necessary or are other ways to use this package?

elidub avatar Mar 19 '24 09:03 elidub