nstall both Python 2.7 and 3.4 with the windows installers. Go to C:\Python34 (the default install path) and change python.exe to python3.exe Edit you ...
- nstall both Python 2.7 and 3.4 with the windows installers.
- Go to
C:\Python34
(the default install path) and change python.exe to python3.exe - Edit your environment variables to include
C:\Python27\;C:\Python27\Scripts\;C:\Python34\;C:\Python34\Scripts\;
1. Download python 2.7
Go to www.python.org/downloads and click on ‘Download Python 2.714”.
![](https://miro.medium.com/max/60/1*yF-lKrlsyFThhovaLirqTw.png?q=20)
![](https://miro.medium.com/max/1838/1*yF-lKrlsyFThhovaLirqTw.png)
Wait until installation package is complete.
![](https://miro.medium.com/max/60/1*uQPBtC3qtnuHn8V_BXyWpw.png?q=20)
![](https://miro.medium.com/max/237/1*uQPBtC3qtnuHn8V_BXyWpw.png)
2. Install python 2.7
When download is finished click to install. You need to select a destination directory where python files and executables will be located. In my case I chose “C:\Python27” as my directory.
![](https://miro.medium.com/max/60/1*bohe7puxb2eINBRKOL2UEg.png?q=20)
![](https://miro.medium.com/max/513/1*bohe7puxb2eINBRKOL2UEg.png)
Wait until install is complete.
![](https://miro.medium.com/max/60/1*tPqqahHpC1_8R-_jkFo0QQ.png?q=20)
![](https://miro.medium.com/max/514/1*tPqqahHpC1_8R-_jkFo0QQ.png)
Click Finish
![](https://miro.medium.com/max/60/1*LHav1VONR9C_a6sXCYoaIQ.png?q=20)
![](https://miro.medium.com/max/517/1*LHav1VONR9C_a6sXCYoaIQ.png)
3. Download python3
In the same way as described in step 1, download python3.
![](https://miro.medium.com/max/60/1*c-N3BQAh_IZeeN-SvV7ryA.png?q=20)
![](https://miro.medium.com/max/238/1*c-N3BQAh_IZeeN-SvV7ryA.png)
Click on executable to install and choose ‘Customize installation’.
![](https://miro.medium.com/max/60/1*b7itAeVKlu0ELPkMIC7DPA.png?q=20)
![](https://miro.medium.com/max/691/1*b7itAeVKlu0ELPkMIC7DPA.png)
Select default values and customize install location to C:\Python3
![](https://miro.medium.com/max/60/1*zyCxzuz77ybBxtiQ5NxWEA.png?q=20)
![](https://miro.medium.com/max/692/1*zyCxzuz77ybBxtiQ5NxWEA.png)
4. Add python27 and python3 PATH
Search ‘Panel de control’ and open it.
![](https://miro.medium.com/max/40/1*Ry4RwFShqFlxlbTqoz7-oQ.png?q=20)
![](https://miro.medium.com/max/403/1*Ry4RwFShqFlxlbTqoz7-oQ.png)
In the search bar, search for ‘variable de entorno’.
![](https://miro.medium.com/max/60/1*rMd_Rlr7OKFlHCNrg6Vz1Q.png?q=20)
![](https://miro.medium.com/max/1838/1*rMd_Rlr7OKFlHCNrg6Vz1Q.png)
Click on ‘Variables de entorno’
![](https://miro.medium.com/max/56/1*eAhSNApUIeTSMn5MtCxVDw.png?q=20)
![](https://miro.medium.com/max/451/1*eAhSNApUIeTSMn5MtCxVDw.png)
Select PATH and click on ‘Nueva’
![](https://miro.medium.com/max/60/1*6EzBF_IsXT33ZexAbIcY2g.png?q=20)
![](https://miro.medium.com/max/583/1*6EzBF_IsXT33ZexAbIcY2g.png)
Add the following routes in order to use python and pip.
C:\Python27
C:\Python27\Scripts
C:\Python3
C:\Python3\Scripts
Note: If you have installed python on a different location you need to find your where python is and set that location.
![](https://miro.medium.com/max/54/1*XJDcfhaFGjKxE0v29Y8U-g.png?q=20)
![](https://miro.medium.com/max/586/1*XJDcfhaFGjKxE0v29Y8U-g.png)
5. Change executables names
In order to execute both python version change the python.exe to python2.exe where python2 is located and python.exe to python3.exe where python3 is located.
![](https://miro.medium.com/max/60/1*5n15VXQ9fM4ZZNa-NC7a2g.png?q=20)
![](https://miro.medium.com/max/1172/1*5n15VXQ9fM4ZZNa-NC7a2g.png)
![](https://miro.medium.com/max/60/1*ZDVJP3GX6OSVI581QxOaOQ.png?q=20)
![](https://miro.medium.com/max/1168/1*ZDVJP3GX6OSVI581QxOaOQ.png)
![](https://miro.medium.com/max/60/1*sV9AvxxEZ96xZufn3yS5-A.png?q=20)
![](https://miro.medium.com/max/1169/1*sV9AvxxEZ96xZufn3yS5-A.png)
6. TEST Both Python versions
a. Check python versions
Run Python2 –V and Python3 –V to get respective python versions.
![](https://miro.medium.com/max/60/1*FqgDzZ6lGz_ZF58SAkIl1Q.png?q=20)
![](https://miro.medium.com/max/817/1*FqgDzZ6lGz_ZF58SAkIl1Q.png)
b. Install a package using python2 and python3
If the above commands run without problems python2 and python3 were successfully installed on windows 10 environment.
![](https://miro.medium.com/max/60/1*X482rwKOMcMPbreo3fEd1w.png?q=20)
![](https://miro.medium.com/max/836/1*X482rwKOMcMPbreo3fEd1w.png)
January 2018