Python Forum
Difficulty with installation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Difficulty with installation
#1
I am having trouble with my python installation. i have installed python at C:\Users\stand\AppData\Local\Programs\Python\Python311\. I have an environmental variable path there and to C:\Users\stand\AppData\Local\Programs\Python\Python311\Scripts\ But if I am cmd prompt python --version ge me:

"Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." if I am in C:\users\stand or an subdirectory OTHER than \Python311. I just don't understand.
Reply
#2
see: https://python-forum.io/thread-267.html
Reply
#3
Look at this Thread under fixing Path if needed.
So you add as in image to Path:
C:\Users\stand\AppData\Local\Programs\Python\Python311\
C:\Users\stand\AppData\Local\Programs\Python\Python311\Scripts\
If you use py --version it will magically woks.
Not all know that py.exe get installed to windows folder when install Python(since Python 3.3).
py can be used on all Python version installed.
G:\div_code
λ py --version
Python 3.11.0

G:\div_code
λ py --list
 -V:3.11 *        Python 3.11 (64-bit)
 -V:3.10          Python 3.10 (64-bit)
 -V:3.9           Python 3.9 (64-bit)
 -V:3.8           Python 3.8 (64-bit)
 -V:3.7-32        Python 3.7 (32-bit)
 -V:3.6-32        Python 3.6 (32-bit)
 -V:3.5-32
 -V:3.4
 -V:2.7
 -V:2.1
 -V:ContinuumAnalytics/Anaconda39-64 Anaconda py39_4.9.2
 -V:ContinuumAnalytics/Anaconda37-64 Anaconda 4.7.12
 -V:ContinuumAnalytics/Anaconda36-32 Anaconda 4.3.14
If i do python --version(now will use Path) it will point to python 3.10 as that what's i have set in Os Path.
G:\div_code
λ python --version
Python 3.10.5
So running old Python 2.1 with py would be like this.
G:\div_code
λ py -2.1
Python 2.1.3 (#35, Apr  8 2002, 17:47:50) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> print 'hello world'
hello world
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Having difficulty finding python.h on OS X catsonmars 2 821 Aug-11-2024, 06:18 AM
Last Post: Pedroski55
Shocked Difficulty understanding .moveaxis in Numpy leea2024 2 899 Aug-10-2024, 06:07 AM
Last Post: leea2024
  Having difficulty with threads and input() sawtooth500 13 3,750 Jun-07-2024, 08:40 AM
Last Post: Gribouillis
  Difficulty in adapting duplicates-filter in script ledgreve 5 1,960 Jul-17-2023, 03:46 PM
Last Post: ledgreve
  Difficulty with installation standenman 0 1,210 May-02-2023, 08:33 PM
Last Post: standenman
  Difficulty in understanding transpose with a tuple of axis numbers in 3-D new_to_python 0 1,958 Feb-11-2020, 06:03 AM
Last Post: new_to_python
  Difficulty installing Pycrypto KipCarter 4 19,064 Feb-10-2020, 07:54 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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