Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to open Python?
#20
(Jun-23-2021, 02:23 PM)snippsat Wrote: You seems confusing bye really basic stuff like using command line.
So in link Python 3.9/3.8 and pip installation under Windows
Have to check that installation work from anywhere in cmd,here a tutorial read and test it this time.How to use the Windows command line.

Here from start in cmd,this do now not old stuff.
Microsoft Windows [Version 10.0.19041.1052]
(c) Microsoft Corporation. Med enerett.

# Change directory down 
C:\Users\Tom>cd ..

# Change directory down 
C:\Users>cd ..

# Check Python version 
C:\>python -V
Python 3.9.5

# Check pip version
C:\>pip -V
pip 21.1.1 from c:\python39\lib\site-packages\pip (python 3.9)

C:\>
This most work then is installation ok.

So it i put this a file in a folder C:\code\,i can run it like this.
# hello.py
print('Test to run a Python file')
From cmd.
# Change directory up
C:\>cd code

# Run python file
C:\code>python hello.py
Test to run a Python file

C:\code>
bensan Wrote:Why is the Common Gateway Interface (CGI) standard not being used? I mentioned that subject earlier but nobody commented.
CGI is dead💀
Python community did now that CGI had no future so the did write a write new way in PEP 3333 -- Python Web Server Gateway
Why is WSGI necessary?

So today is all Python web-frameworks build on top of this WSGI standard,and no one use CGI.
The closets and much better way to work like did with CGI today in Python is to eg use Flask (close to HTML/CSS as was with CGI).

Thanks @snippsat. I have read your part of the command line but quite frankly Im not very interested in that. I see that is the job of the Python developers to understand & formulate some kind of window application for web developers to follow & clearly understand. In the website that Im developing I dont expect the users to ever go into prompt command, so I do my best to make the site as user friendly as possible.

It appears as if my problem lies with WSGI or the lack of it. Is WSGI part of Python or is it something that I need to download & add to Python?

And as Flask is a framework, will it conflict with CodeIgniter, which is also a framework?

And do I need to download & install Flask?

Can you answer - Will a Python text editor with a macro "select copy & paste"?
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