How do I fix the Python “version error” on Command Prompt?
up vote
0
down vote
favorite
The image above shows that there is some error. I don't understand the error here as I already have Python installed. The same error occurs when I open a file using 'python filename.py'. How do I fix this?
windows
add a comment |
up vote
0
down vote
favorite
The image above shows that there is some error. I don't understand the error here as I already have Python installed. The same error occurs when I open a file using 'python filename.py'. How do I fix this?
windows
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The image above shows that there is some error. I don't understand the error here as I already have Python installed. The same error occurs when I open a file using 'python filename.py'. How do I fix this?
windows
The image above shows that there is some error. I don't understand the error here as I already have Python installed. The same error occurs when I open a file using 'python filename.py'. How do I fix this?
windows
windows
edited Nov 11 at 12:55
stovfl
7,1903931
7,1903931
asked Nov 11 at 10:47
Aryamaan Goswamy
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
you need to add Python in Environmental Variables in Windows ;)
Follow this here or check the Python manual on the official page here
Here also a full screen to follow:
where the path should be your python's Script folder considering the path if you change or use a custom installation. If you install through the .exe tool it usually allows you configure this on install (or during install).
1
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories inPATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.
– eryksun
Nov 11 at 15:02
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
you need to add Python in Environmental Variables in Windows ;)
Follow this here or check the Python manual on the official page here
Here also a full screen to follow:
where the path should be your python's Script folder considering the path if you change or use a custom installation. If you install through the .exe tool it usually allows you configure this on install (or during install).
1
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories inPATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.
– eryksun
Nov 11 at 15:02
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
add a comment |
up vote
3
down vote
you need to add Python in Environmental Variables in Windows ;)
Follow this here or check the Python manual on the official page here
Here also a full screen to follow:
where the path should be your python's Script folder considering the path if you change or use a custom installation. If you install through the .exe tool it usually allows you configure this on install (or during install).
1
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories inPATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.
– eryksun
Nov 11 at 15:02
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
add a comment |
up vote
3
down vote
up vote
3
down vote
you need to add Python in Environmental Variables in Windows ;)
Follow this here or check the Python manual on the official page here
Here also a full screen to follow:
where the path should be your python's Script folder considering the path if you change or use a custom installation. If you install through the .exe tool it usually allows you configure this on install (or during install).
you need to add Python in Environmental Variables in Windows ;)
Follow this here or check the Python manual on the official page here
Here also a full screen to follow:
where the path should be your python's Script folder considering the path if you change or use a custom installation. If you install through the .exe tool it usually allows you configure this on install (or during install).
edited Nov 11 at 11:03
answered Nov 11 at 10:51
oetoni
749621
749621
1
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories inPATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.
– eryksun
Nov 11 at 15:02
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
add a comment |
1
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories inPATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.
– eryksun
Nov 11 at 15:02
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
1
1
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories in
PATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.– eryksun
Nov 11 at 15:02
python.exe is located in the base installation directory, not the "Scripts" subdirectory -- except in a venv virtual environment. I know it's silly to require both directories in
PATH
. It's also silly that the directory is named "Scripts" instead of "bin". These quirks are legacies from the original port to Windows NT in the 1990s.– eryksun
Nov 11 at 15:02
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
@eryksun you are more than right! :) I wanted a very fast screen shot just to illustrate the location and thus I simply took the one on my laptop
– oetoni
Nov 11 at 22:50
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247974%2fhow-do-i-fix-the-python-version-error-on-command-prompt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown