Python Forum
I'm New to Python and have a question
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm New to Python and have a question
#3
I have a Raspberry Pi 2 (loaded with Raspian 'Jessie'. This is a Linux OS (Debian fork, actually) and comes with Python 2.7.9 and Python 3.4.2 by default. As was pointed out, Linux generally comes with both versions, but the versions may be older/newer. I doubt (though I don't know for sure) that the Windows version for the Pi comes with any Python version pre-installed. It shouldn't be a problem to install, however.

Since you are are apparently new to Python, you will want to use the latest available version of Python you have, ie 3.x, do not waste your time with Python 2, as this is only a maintenance release and will no longer be supported as of 2020. If you use a Linux distribution, you access Python 3.x with the command "python3" in the command terminal. You can also add a "shebang" line as the very first line of the scripts you write. This usually takes the form of !# /usr/bin/env python3 . You should also make sure that 'pip' is installed and is the most up to date version (currently 9.0.1). You can check this by typing "pip3 -V" at the command prompt (not the Python prompt), if your version is less than the current you can upgrade it with pip3 install --upgrade pip , again, typed at the command prompt.

If you have any other questions or concerns feel free to ask, it's why we are here. :-)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
RE: I'm New to Python and have a question - by sparkz_alot - Dec-15-2017, 02:38 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020