TheStageAI / TorchIntegral

Integral Neural Networks in PyTorch
Apache License 2.0
121 stars 9 forks source link

ModuleNotFoundError: No module named 'torch_integral.tsp_solver.solver',but I can't find the problem, please help,Thank you! #32

Open EIDorado1 opened 10 months ago

EIDorado1 commented 10 months ago
截屏2023-12-04 17 26 58

But I checked all the packages and versions and found no problems, the environment for requerments is all followed as requested, and the git packages are downloaded. After re-executing ’setup install‘, it shows that the compilation is complete and I can see the version 0.0.0 of the package, but as soon as I import the package, it generates the error shown in the picture.

EIDorado1 commented 10 months ago

![Uploading 截屏2023-12-04 17.33.08.png…]()

EIDorado1 commented 10 months ago

ModuleNotFoundError: No module named 'torch_integral.tsp_solver.solver' ![Uploading 截屏2023-12-04 17.33.08.png…]()

ArnoldMSU commented 10 months ago

@EIDorado1 Hello! Did you follow installation instructions? Please provide full code which you try to run after which you are obtaining this issue.

EIDorado1 commented 10 months ago

Yes, I've tried it according to the documentation you've given and the methods documented in previous questions from people. Now I'm trying to debug the miniset project to learn the principles of this article, but after checking the environment I can't find what the problem is.

截屏2023-12-06 13 36 12
EIDorado1 commented 10 months ago
截屏2023-12-06 13 42 44

I have performed all the environments and steps required by the README.md file. I have also executed the setup.py install command, and all the environments required by the requirements.txt file have been installed.

b1n0 commented 10 months ago

What command do you use to install the package pip install ./ or python setup.py install ?

EIDorado1 commented 10 months ago

python setup.py install

b1n0 commented 10 months ago

Use pip install ./. It should help.

EIDorado1 commented 10 months ago
截屏2023-12-06 13 52 20

I ran this command and then ran minist to test it.

截屏2023-12-06 13 53 40

The problem still seems to exist.

ArnoldMSU commented 10 months ago

Maybe you trying to run package from root dir? Python will use this instead of installed version. Please out of project root dir if so

EIDorado1 commented 10 months ago

I'll try to create a brand new python environment and put it under another path, thank you so much!

ArnoldMSU commented 9 months ago

@EIDorado1 Hello! Did you solve this problem? We plan to close this issue if so