How to run Python 3 in Linux

preview_player
Показать описание
2 ways to run Python3 in Linux terminal.

Method 1
python3 ["executable_file_name"]

Method 2 : Create an executable file
#!/usr/bin/env python3 - Add the first line of text editor
chmod 700 ["file_name"] - Change to executable permissions
./["executable_file_name"]
Рекомендации по теме