on-internet
← Community

Can't get virtual environment to activate from the terminal

Stack Overflow ·

I am trying to run a Python script using a venv I created with PyCharm. When I run the script using PyCharm, the script runs fine. When I try to run it from the terminal, I get "module not found" (i.e. I'm not in the correct virtual environment). Indeed, when I run -m pip list, the list contains only pip. I copy the file path to Python directly from PyCharm: Then, in my terminal I run: /home/<me>/PycharmProjects/From Windows/GifToMp4/.venv/bin/python3.13" -m pip list I've also tried python3 and python3.13 instead of just python. How do I get my terminal to enter the venv to access the installe

Comments

Sign in or sign up to comment and upvote.

No comments yet.