Python Forum
Python would not run after installation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python would not run after installation
#1
I have just installed Python 3.8.1 (Windows 10, 64 bit) on my computer. Apparently it installed correctly and it shows in the list of programs, when I click on Start in the bottom left corner of the screen.
But when I click on IDLE (Python 3.8 64-bit) and I type ‘Python’ to launch the program, I get the following error message:

NameError: name 'python' is not defined

I am not sure about what I am doing wrong.
Thanks for your help.
Reply
#2
You likely didn't add python to your path when you installed it. It's a box to check. You can add still. I don't remember specifics but it's a common problem. Just google "add python to path" and you'll find lots of step by steps. OR you could uninstall it an make sure to check the box this time. All the same.
Reply
#3
(Jan-02-2020, 02:57 AM)michael1789 Wrote: You likely didn't add python to your path when you installed it. It's a box to check. You can add still. I don't remember specifics but it's a common problem. Just google "add python to path" and you'll find lots of step by steps. OR you could uninstall it an make sure to check the box this time. All the same.

Thanks for your reply. I checked the box about the path, when I installed the software. Actually after installing the software for the first time, I removed it, because it was not working, and I re-installed it. And I checked the box also the second time.
Reply
#4
(Jan-02-2020, 01:53 AM)Charles37 Wrote: But when I click on IDLE (Python 3.8 64-bit) and I type ‘Python’ to launch the program, I get the following error message:

NameError: name 'python' is not defined

The error is maybe from you typing "Python" in the terminal. If you have a window called "Python 3.8.1 SHELL", go there, click the menu: FILE -> NEW FILE

Write your code there, save it as a .py
Reply
#5
Check our tutorial https://python-forum.io/Thread-How-to-Ex...ython-code
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#6
I was able to write a couple of lines of code and save them in the window called "Python 3.8.1 SHELL"
I assume that the software has been installed properly.
Thanks to All
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python installation for old MacOS Yonix 1 496 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 846 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 1,635 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 965 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  python installation/running inside singularity container erdemath 2 1,806 Sep-21-2022, 08:13 AM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,108 Aug-11-2022, 02:30 AM
Last Post: Danno
  Portable installation of Python possible? pstein 2 3,099 Nov-15-2020, 12:14 PM
Last Post: snippsat
  python and openCV installation dejhost 16 10,844 Aug-04-2020, 02:23 AM
Last Post: snippsat
  No Scripts File present after python installation ag2207 5 4,926 Jul-30-2020, 11:11 AM
Last Post: buran
  Cannot find Python installation folder when I install Anaconda bsbsbsbs 1 2,225 Jul-14-2020, 03:14 PM
Last Post: dgrunwal

Forum Jump:

User Panel Messages

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