Accessing Python2.x and 3.x in windows

fsociety

I have successfully installed Python2.7 and Python3.5 on my windows machine. The location for Python2.7 is C:\Python27 while the location for Python3.5 is C:\Python35-32. I have added both these paths in my environment variables(path to Python27 being referred first).

Q:From the command prompt(via any directory),when i type python, it always opens the python2.7 interactive shell.Is there a way by which i can explicitly call Python2.7 or 3.5 on my choice? (I tried python3 --doesn't work,am i missing something) Please guide.

fsociety

It worked using the below:

py -2 

always calls python2.x

py -3

always calls python3.x

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Python 3.X accessing results of cursor.callproc

From Dev

OpenCV for Python 3.x under Windows

From Dev

Change "Edit with IDLE" default to python 3.X instead of python 2.X on windows

From Dev

CakePHP 2.x Accessing Another Model

From Dev

install python 2.x and 3.x on the same windows computer

From Dev

Sudoku Checker: Accessing 3x3 subgrid in C

From Dev

Python 3.x, Trouble accessing key value with special characters in Python Dict (loaded through json)

From Dev

Python: Eval with undefined variables (2*x+x = 3*x)

From Java

Why is 2 * x * x faster than 2 * ( x * x ) in Python 3.x, for integers?

From Dev

Why is 2 * x * x faster than 2 * ( x * x ) in Python 3.x, for integers?

From Dev

OpenCV - python 3.x and windows - what version of Numpy?

From Dev

Installing numpy on Windows 7 and python 3.x

From Dev

How to install OpenCV for Python 3.x on Windows 8.1?

From Dev

Control screen brightness on Windows 10 with Python3.X

From Dev

How to use python 3.x scripts on IIS windows 10

From Dev

Call Matlab2013 from Python3.x on Windows 7x64

From Dev

Call Matlab2013 from Python3.x on Windows 7x64

From Dev

Python2 Pygame Installation Problems OS X

From Dev

Python2 Pygame Installation Problems OS X

From Dev

Script incompatibility for Python 2.x and Python 3.x

From Dev

Geocoding Strategies - Python 2.x to Python 3.x

From Dev

Python 2.x - QueryPerformanceCounter() on Windows

From Dev

Accessing MacOS X clipboard from

From Dev

Deal with buffer in Python 2.x and 3.x

From Dev

Regex unicode in python 2.x vs 3.x

From Dev

Deal with buffer in Python 2.x and 3.x

From Dev

cocos2d-x 3.x on Windows: How do I change the size of my game window?

From Dev

PyYAML with Python 3.x

From Dev

Pyinstaller with Python3.x

Related Related

  1. 1

    Python 3.X accessing results of cursor.callproc

  2. 2

    OpenCV for Python 3.x under Windows

  3. 3

    Change "Edit with IDLE" default to python 3.X instead of python 2.X on windows

  4. 4

    CakePHP 2.x Accessing Another Model

  5. 5

    install python 2.x and 3.x on the same windows computer

  6. 6

    Sudoku Checker: Accessing 3x3 subgrid in C

  7. 7

    Python 3.x, Trouble accessing key value with special characters in Python Dict (loaded through json)

  8. 8

    Python: Eval with undefined variables (2*x+x = 3*x)

  9. 9

    Why is 2 * x * x faster than 2 * ( x * x ) in Python 3.x, for integers?

  10. 10

    Why is 2 * x * x faster than 2 * ( x * x ) in Python 3.x, for integers?

  11. 11

    OpenCV - python 3.x and windows - what version of Numpy?

  12. 12

    Installing numpy on Windows 7 and python 3.x

  13. 13

    How to install OpenCV for Python 3.x on Windows 8.1?

  14. 14

    Control screen brightness on Windows 10 with Python3.X

  15. 15

    How to use python 3.x scripts on IIS windows 10

  16. 16

    Call Matlab2013 from Python3.x on Windows 7x64

  17. 17

    Call Matlab2013 from Python3.x on Windows 7x64

  18. 18

    Python2 Pygame Installation Problems OS X

  19. 19

    Python2 Pygame Installation Problems OS X

  20. 20

    Script incompatibility for Python 2.x and Python 3.x

  21. 21

    Geocoding Strategies - Python 2.x to Python 3.x

  22. 22

    Python 2.x - QueryPerformanceCounter() on Windows

  23. 23

    Accessing MacOS X clipboard from

  24. 24

    Deal with buffer in Python 2.x and 3.x

  25. 25

    Regex unicode in python 2.x vs 3.x

  26. 26

    Deal with buffer in Python 2.x and 3.x

  27. 27

    cocos2d-x 3.x on Windows: How do I change the size of my game window?

  28. 28

    PyYAML with Python 3.x

  29. 29

    Pyinstaller with Python3.x

HotTag

Archive