he-dhamo/simsg

Some questions about ”# to add current directory to python path run“

VicZlq opened this issue · 5 comments

Hello, I am very interested in your work! But I had some problems when I reappeared. In # to add current directory to python path run, I found my path_to_env, but after adding it,
”echo $PWD > </home/anaconda3/envs/pt/lib/python3.7/site-packages/simsg.pth“
While I was training, the problem of "Modulenotfounderror: no module named' scripts. train'" still appeared. Has anyone ever encountered the same problem? How should it be solved?
Looking forward to hearing from you very much

Hi there,

You should remove the "<" around the python path. It was just there to indicate that you set your own path_to_env. Try this:
echo $PWD > /home/anaconda3/envs/pt/lib/python3.7/site-packages/simsg.pth

Thank you very much for your reply!
I followed your prompt to add the current directory to the python path to run, but now the problem seems to have not been solved:
from scripts.train import argument_parser
ModuleNotFoundError: No module named 'scripts.train'
Do you know what went wrong?

Hello, I checked simsg.pth again just now. It is really under the correct path, and it contains the path information "/home/zlq/simsg", which corresponds to the path content under my file. But now the problem has not been solved.

I see.. are you sure that you are using python 3.7 in your environment, like the path indicates?

Hello! I just checked the environment configuration, using python3.7.7 version