1. 程式人生 > >如何在windows上同時安裝python2和python3

如何在windows上同時安裝python2和python3

 1. 下載安裝python2.7
 2. 把python.exe改為python2.exe
 3.  Python2.7配置環境變數
        d:\Python2;d:\Python2\Scripts;
 4. 開啟cmd安裝pip:python2 -m pip install --upgrade pip --force-reinstall
 5. 下載安裝python3.6
 6. 把python.exe改為python3.exe
 7.  Python2.7配置環境變數
        d:\Python3;d:\Python3\Scripts;
 8. 開啟cmd安裝pip:python3 -m pip install --upgrade pip --force-reinstall
 end