Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to open Python?
#15
(Jun-18-2021, 08:14 PM)Larz60+ Wrote: you should create a project file for each project and perhaps store python scripts in a subdirectory of that.
If installed properly, python should be visible in any directory,

You should never put anything in the python installation directory.

the following is a typical project directory structure that I use (you probably don't need all of these directories):

Output:
├── ProjectName │ ├── data │ │ ├── csv │ │ ├── database │ │ ├── html │ │ ├── json │ │ ├── pretty │ │ └── tmp │ ├── docs │ ├── requirements.txt │ ├── src │ │ └── any.py | │ ├── ...

  1. simply change to the directory where the python file exists.
  2. open a command window
  3. to make sure python is properly installed, run command python -V
  4. run program with command: python myscript.py

Thanks @Larz60+

I do have a directory C:/PythonProjects/TextEditor.py - But it makes no difference.

I would prefer to open in a browser. The opening of a command window is extremely frustrating & unlike web development.

If I open Python & type 6*2 + enter 12 appears.
Reply


Messages In This Thread
How to open Python? - by bensan - Jun-05-2021, 02:36 PM
RE: How to open Python? - by Axel_Erfurt - Jun-05-2021, 04:04 PM
RE: How to open Python? - by bensan - Jun-06-2021, 09:18 PM
RE: How to open Python? - by Larz60+ - Jun-07-2021, 12:25 AM
RE: How to open Python? - by bensan - Jun-09-2021, 04:06 PM
RE: How to open Python? - by Gribouillis - Jun-09-2021, 04:23 PM
RE: How to open Python? - by Larz60+ - Jun-09-2021, 09:29 PM
RE: How to open Python? - by perfringo - Jun-10-2021, 08:20 PM
RE: How to open Python? - by bensan - Jun-17-2021, 04:36 PM
RE: How to open Python? - by perfringo - Jun-18-2021, 09:55 AM
RE: How to open Python? - by bensan - Jun-18-2021, 07:08 PM
RE: How to open Python? - by bensan - Jun-17-2021, 08:47 PM
RE: How to open Python? - by Larz60+ - Jun-18-2021, 08:14 PM
RE: How to open Python? - by bensan - Jun-18-2021, 09:32 PM
RE: How to open Python? - by snippsat - Jun-18-2021, 09:29 PM
RE: How to open Python? - by bensan - Jun-23-2021, 01:22 PM
RE: How to open Python? - by snippsat - Jun-23-2021, 02:23 PM
RE: How to open Python? - by bensan - Jun-23-2021, 07:34 PM
RE: How to open Python? - by jefsummers - Jun-23-2021, 05:01 PM
RE: How to open Python? - by snippsat - Jun-23-2021, 05:29 PM
RE: How to open Python? - by snippsat - Jun-23-2021, 07:50 PM
RE: How to open Python? - by bensan - Jun-23-2021, 08:33 PM
RE: How to open Python? - by snippsat - Jun-23-2021, 09:11 PM
RE: How to open Python? - by bensan - Jun-24-2021, 08:25 AM
RE: How to open Python? - by jefsummers - Jun-24-2021, 01:59 AM
RE: How to open Python? - by bensan - Jun-24-2021, 08:32 AM
RE: How to open Python? - by Larz60+ - Jun-24-2021, 10:11 AM
RE: How to open Python? - by snippsat - Jun-24-2021, 10:53 AM
RE: How to open Python? - by bensan - Jun-25-2021, 01:55 PM
RE: How to open Python? - by jefsummers - Jun-24-2021, 06:24 PM
RE: How to open Python? - by buran - Jun-24-2021, 08:58 PM
RE: How to open Python? - by Yoriz - Jun-24-2021, 10:04 PM
RE: How to open Python? - by bensan - Jun-25-2021, 01:15 PM
RE: How to open Python? - by deanhystad - Jun-25-2021, 01:30 PM
RE: How to open Python? - by bensan - Jun-25-2021, 03:07 PM
RE: How to open Python? - by Yoriz - Jun-25-2021, 03:20 PM
RE: How to open Python? - by bensan - Jun-25-2021, 03:50 PM
RE: How to open Python? - by Gribouillis - Jun-25-2021, 02:53 PM
RE: How to open Python? - by Yoriz - Jun-25-2021, 04:09 PM
RE: How to open Python? - by bensan - Jun-25-2021, 04:56 PM
RE: How to open Python? - by Yoriz - Jun-25-2021, 05:12 PM
RE: How to open Python? - by bensan - Jun-26-2021, 04:46 PM
RE: How to open Python? - by Yoriz - Jun-26-2021, 05:12 PM

Forum Jump:

User Panel Messages

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