News

That’s how to run a Python script in terminal or CMD. It’s a very straightforward process, but it’s extremely handy if you ever want to quickly carry out a bespoke task.
The first thing you must do is install the latest version of Python. To do that, open a terminal window on your Linux machine and issue the command: sudo apt-get install python3 -y.
Next, you will run the script by typing python test.py into the terminal, which should output the following: Virtual environment and libraries are working! Deactivating your virtual environment.