Check if you have activated the virtual environment correctly using the appropriate command. Activate the virtual environment and try running your program again.