Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what does "python3" mean
#1
when i see python stuff on places like github i see "python3 -m" a lot and when i try and use it in command prompt i get "'python3' is not recognized as an internal or external command,operable program or batch file." and when i use python 3.6.4 (my perferred version of python) i get a "NameError: name 'python3' is not defined".
any help would be very much appreciated.
Reply
#2
python3 is by default just python on many installations.
there installations distinguish between 2.7 and 3.whatever using python and python3, and also pip and pip3

The release of python 3.0 was a major one, thus the reason for the split.

Since you are seeing:
Quote:"NameError: name 'python3' is not defined".
I suspect your 'python' is python3. to verify this, please issue the following command from a command shell:
python -V
You should see something similar to:
Output:
Python 3.7.2
if not try same for python3

Also, you may want to upgrade to version 3.7.2 as there have been many improvements.
Reply
#3
i realised it was simply "python" for my version and not python3
Reply
#4
A lot of times windows will just have the executable titled as python.exe with no 3 even if it is 3 but the directory it is in will be labeled as 3 etc. But linux and mac have different directory structures and their binaries are labeled as python for python2.x and python3 for python3.x (of course now that 2.x is almost dead that is changing for some distros). So now you will see both python and python3 refer to python3.x.
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 4,920 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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