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
  White Screen Issue with Toolbar After Python Installation evelynfreya 2 1,011 Nov-25-2024, 06:26 PM
Last Post: deanhystad
  Install a module to a specific to Python Installation (one of many)) tester_V 2 1,884 Oct-29-2024, 03:25 PM
Last Post: snippsat
  Shrink Python installation? Extract site-packages from .zip only on demand? pstein 4 1,512 Oct-28-2024, 04:29 PM
Last Post: snippsat
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,056 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  Python installation for old MacOS Yonix 1 1,065 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 4,360 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 4,434 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 1,605 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  python installation/running inside singularity container erdemath 2 3,142 Sep-21-2022, 08:13 AM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,958 Aug-11-2022, 02:30 AM
Last Post: Danno

Forum Jump:

User Panel Messages

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