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

A hard question #18

Closed
Lay-best opened this issue Apr 19, 2023 · 4 comments
Closed

A hard question #18

Lay-best opened this issue Apr 19, 2023 · 4 comments

Comments

@Lay-best
Copy link

Lay-best commented Apr 19, 2023

Hello , when I run the order that : 'sh test_torch.sh 1 1', a error was found:
ModuleNotFoundError: No module named 'datasets'
Could you tell me how to address the error , please!

@zhiyuanyou
Copy link
Owner

Hi~

Could you show your directory of experiments using "pwd", and show the content of "test_torch.sh"?

@Lay-best
Copy link
Author

image
image
无标题

@zhiyuanyou
Copy link
Owner

Hi~
You are on a Windows system, for which the environment variable PYTHONPATH could not be add using shell scripts.
There are 2 options:

  • (1) Set PYTHONPATH as the path of SAFECount-main directory to the environment variable.
  • (2) Change to a Linux system.
    I suggest option (2), since all codes have been verified on Linux system.

@Lay-best
Copy link
Author

OK,thank you!

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