Im having some issues with virtual enviroments, i have a pycharm project where i want to launch it from my terminal, however when launching the project it seems like my internal modules are not found. How do i let python know about the internal importing of modules in my project. And also shouldnt the virtual env take care of the dependencies created along my python files?
this is what i write in the terminal:
(venv) C:\Users\####\PycharmProjects\CLONE_1\Initialize>python CLONE_MainInitialize.py
Traceback (most recent call last):
File "C:\Users\####\PycharmProjects\CLONE_1\Initialize\CLONE_MainInitialize.py", line 6, in <module>
import Variables as v
ModuleNotFoundError: No module named 'Variables'
(venv) C:\Users\mknjbh\PycharmProjects\CLONE_1\Initialize>
when i run the project it cannot find my module Variables, which is a directory in my python project, the directory has a __init__.py
which imports the files in that directory so that i can use the files, and all works fine in the pycharm IDLE.
I used the venv from the python.exe interpreter.
So what can i do about this. Let me know if you need more information or code.
Any ideas as how i can solve this would be great i am always eager to learn more.