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 'torch_integral.tsp_solver.solver',but I can't find the problem, please help,Thank you! #32

Open
EIDorado1 opened this issue Dec 4, 2023 · 12 comments

Comments

@EIDorado1
Copy link

截屏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
Copy link
Author

Uploading 截屏2023-12-04 17.33.08.png…

@EIDorado1
Copy link
Author

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

@ArnoldMSU
Copy link
Collaborator

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

@EIDorado1
Copy link
Author

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
Copy link
Author

截屏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
Copy link
Collaborator

b1n0 commented Dec 6, 2023

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

@EIDorado1
Copy link
Author

python setup.py install

@b1n0
Copy link
Collaborator

b1n0 commented Dec 6, 2023

Use pip install ./. It should help.

@EIDorado1
Copy link
Author

截屏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
Copy link
Collaborator

ArnoldMSU commented Dec 6, 2023

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
Copy link
Author

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

@ArnoldMSU
Copy link
Collaborator

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

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

3 participants