Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
window command window
#11
(Aug-05-2021, 02:17 PM)RobertAlvarez424 Wrote: So this exe is for use in window 10 envoirment but actually can be a dos script or windows type script ? Opens cmd prompt window or used in window 10?
You seems a little lost on the basic stuff how OS(Windows) work,and i guess Python to.
Yes python.exe is for use in Windows as .exe is only for Windows OS,
Environment Variables Path is a convenient so Windows find version that you want use and command python and pip work from command line(cmd).
dos script and type script has nothing to with what we talk about here only how Python work on Windows.
(Aug-05-2021, 02:17 PM)RobertAlvarez424 Wrote: What is 'λ' character and how do you type this character with keyboard?
Do not now yet about pip. Does it package only dos type script
I do not type λ at all as i mention so i use cmder a much better version of cmd/powershell.
cmder insert λ automatic.

pip is the package installer for Python.
So if look at PyPi there is 319,780 projects.
If want use some of them in Python need to use pip.
Example with Requests that a lot people use.
# Install 
G:\div_code
λ pip install Requests
Collecting Requests
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting charset-normalizer~=2.0.0
  Downloading charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
Requirement already satisfied: idna<4,>=2.5 in c:\python39\lib\site-packages (from Requests) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\python39\lib\site-packages (from Requests) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python39\lib\site-packages (from Requests) (1.26.3)
Installing collected packages: charset-normalizer, Requests
Successfully installed Requests-2.26.0 charset-normalizer-2.0.4

# Test that it work
G:\div_code
λ python
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>
>>> r = requests.get('https://python-forum.io/')
>>> r.status_code
200
>>> r.encoding
'UTF-8'
>>> exit()

G:\div_code
Reply
#12
snippsat, this is my first post for python questions, just starting out with python. This first post has a lot of info to learn from.
Thanks for your reply and everyone for you info too.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Minimize ADB window OomKoos 0 344 Dec-29-2023, 12:41 PM
Last Post: OomKoos
  add entries and labels to the window tkinter jacksfrustration 3 549 Oct-10-2023, 06:41 PM
Last Post: buran
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,612 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Can't stop keyboard listener to grab chars typed inside CTk window Valjean 9 1,252 Sep-25-2023, 08:07 PM
Last Post: deanhystad
  read active document name - other than from the window title ineuw 0 495 Sep-11-2023, 09:06 AM
Last Post: ineuw
  how to open a popup window in tkinter with entry,label and button lunacy90 1 810 Sep-01-2023, 12:07 AM
Last Post: lunacy90
Bug tkinter.TclError: bad window path name "!button" V1ber 2 725 Aug-14-2023, 02:46 PM
Last Post: V1ber
  Howto do motion event on solely window and not the widgets on it? janeik 3 791 Jul-11-2023, 12:10 AM
Last Post: deanhystad
  What is all the info in the info window in Idle? Pedroski55 3 647 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  Open a new window does not work Nietzsche 4 1,012 Jun-14-2023, 08:52 AM
Last Post: Nietzsche

Forum Jump:

User Panel Messages

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