maybe you need it if test.py not runs Create a directory to store Python scripts. Then switch to the newly-created directory. mkdir tests && cd tests Set up the Python virtual environment and activate it. python3 -m venv venv source venv/bin/activate