On 13/8/21 9:59 am, Scott McDonnell wrote:
Type "python --version" in the terminal to check which version you have installed.
Note that on Ubuntu/other Debian derived systems (possibly others), "python" is typically a symbolic link to a default installed python, and typically on those systems defaults to 2, *even* if 3 is installed (which it can be, Python versions can coexist side by side without issue). The upshot is, you may been to run "python3 --version", and even then that may not give you the max version of Python (although unless you're a developer, you'll probably only have one of each, at best). $ ls -l `which python` lrwxrwxrwx 1 root root 9 Jul 15 2017 /usr/bin/python -> python2.7 $ ls -l `which python2` lrwxrwxrwx 1 root root 9 Jul 15 2017 /usr/bin/python2 -> python2.7 $ ls -l `which python3` lrwxrwxrwx 1 root root 9 Jul 15 2017 /usr/bin/python3 -> python3.5 (yeah yeah, backticks - I'm old, get off my lawn!). Earlier, Peter Vollan wrote:
Do I have the wrong type of Python? I run Mint 17.3.
According to the interwebz, default Python for Mint 17.3 is Python 3.4, and the traceback "SyntaxError: can use starred expression only as assignment target" is specific to < Python 3.5, so yeah, you'll need to get a later version. See: <https://stackoverflow.com/questions/34372731/installing-python-3-5-on-linux-mint-17-3> This does mean you'll need to invoke your script specifically with "python3.5 ...". Cheers, --dt
