Python cannot import function from module in same package

submited by
Style Pass
2021-05-20 13:21:59

but none of them works, giving me ModuleNotFoundError. I understand there are many similar questions here but none of them seems to work for me. One which I have not tried is setting the PYTHONPATH variable, but I am not sure what to set it to. I am using VSCode and the current python.pythonPath is just the python file in my venv folder.

This content was originally published by Ayam Chan at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

Leave a Comment