If you execute any program using 'run' button in PyCharm, it will give you the python it is using, in your case, it should be venv. Now from Terminal use that command instead on just python/python3.
For example, your are running a program using run button, you would see something like
/Users/soumyabratakole/.local/share/virtualenvs/pythonProject-8Ymrt2w6/bin/python /Users/soumyabratakole/PycharmProjects/pythonProject/main.py
Now you can use /Users/soumyabratakole/.local/share/virtualenvs/pythonProject-8Ymrt2w6/bin/python instead of just python from your terminal to use your venv.
I have a python project and I need to use its venv in the terminal offered by PyCharm. However, some dependencies show as not installed but they are present in the venv folder. I think the project is using another venv in the Terminal. How can I check which venv is being used in the terminal and how can I change it to be the one in the project's folder?
How to view which venv is used in pycharm in terminal?