Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to open Python?
#9
(Jun-10-2021, 08:20 PM)perfringo Wrote:
(Jun-09-2021, 04:06 PM)bensan Wrote: (2) open a command (terminal) window [I dont know precisely what you mean - Win10 has a command box at far left of the Task Bar which is what I use so I dont "open" anything. Am I misunderstanding something?]

Yes, your problem lies here. You need to write cmd into that box which in turn opens command interpreter. If you have installed PowerShell, then you can enter it (modern version of cmd). You can read about them here. If you are into programming seriously then you probably want to use 'Windows Subsystem for Linux'

Once in shell of your choice cd (change directory) to folder where the file you want to run is located and then order Python to run this file: python my_file.py (or python3 my_file.py, depending on your setup). Yes, you can provide path and then you don't need to change directory.

(Jun-09-2021, 04:06 PM)bensan Wrote: But Im finding Python extremely alien with little or no explanation.

I don't think that this is Python, this is your knowledge about W10. All needed explanations about Python can be found at python.org

Thanks @perfringo

"You need to write cmd into that box ..." OK, Ive opened the command interpreter & pasted "python 3 /PythonProjects/TextEditor3.py" but this is the result I get "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."

Where am I going wrong? Your reply hopefully will be enough to get me started in Python.

No, I have not installed PowerShell, but I prefer to understand the basics first & if I find the "command interpreter" clumsy then I should move to PowerShell.

"Once in shell of your choice cd (change directory) ...." That is alien to me but I may understand it better after I investigate your links.

Im working from the sites below, the 1st is the one Im trying to open, the 2nd is more comprehensive. My primary question is where did the authors learn that coding? It must have come from Python. If I can find that it should help me a lot.
https://www.instructables.com/Create-a-S...xt-Editor/
https://www.codespeedy.com/create-a-text...in-python/

Yes, I am completely focused in Windows & PHP. When I attempted to learn PHP I found it similarly alien, then I heard about CodeIgniter (CI) & wondered why I should use that. I asked that question to an experienced CI developer & his reply was to the effect of "I MUST use CI because it guides PHP in the right direction & eliminates a lot of development work" I understand that more clearly now. I persevered with CI & managed to get a window to open & build a simple site. But after that stage I found CI confusing as from my point of view their userguide jumped from the 1st rung of the ladder to the 4th so I had to develop using my own trial & errors. That development conflicts with other developers but I can live with that. However, if other developers get involved in the website that Im building then they will need to adjust to my way of development.

CI has the facility to create a user library & Im hoping I can create a Python editor with macro within a library or libraries. Is that going to be possible?

Later I will require Python to develop face recognition & fingerprint facility to be integrated into CI. Again will that be possible?

It may be noted that CI uses Python obviously to do what PHP can not do.

I bought my laptop about 5 years ago, without a platform, thinking that I will be able to install Linux. I ended up with Ubuntu, but I had greater problems. My Internet connection dongle was designed for Windows only, and my favorite text editor (UltraEdit32), old version, was also limited to Windows. So I then had to purchase Windows 10, & Ive stuck with it ever since.

However, I have always wondered if things will be the same when the website is ready to go online. I understand that the majority of websites are run under Linux. The site is around 75%-80% complete before it can go online. Going online will be completely new ground for me.

I have been recommended using the Django framework & Ive wondered if that will work with the CI framework. Will 2 frameworks be compatible with each other? And would a framework in Python be necessary to create the user library & also the face recognition & fingerprint facility? Do you or anybody else have any advice?

I am aware that Facebook uses PHP & Python, among other languages, but Im not aware that they use any form of framework.

The website that Im building will be comprehensive, & if anybody provides significant contribution then ongoing compensation will be awarded, based on a small percentage of each users turnover. That can include an existing project on the web & be embedded into the website. Any interest is welcome.
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