Shubham Choudhary
Shubham Choudhary

Reputation: 3

Python Command Prompt

I have both python 3 as well as python 2 version installed in my Windows PC. On calling variable name 'py' in cmd, python2.7 shows up even though I have mentioned python34 folder path in local environment PATH values. Please recommend a fix.

Upvotes: 0

Views: 91

Answers (1)

Alex
Alex

Reputation: 21766

You can resolve this by setting the environment variable

SET PY_PYTHON=3

or by editing the py.ini in your applications data folder and adding the following line:

[defaults]
python=3

Typically, your application directory is found in C:\Documents and Settings\[username]\Application Data or C:\Users\[username]\AppData\Local\ depending on the Windows version.

Upvotes: 1

Related Questions