- 到python.org官網下載處抓最新的版本,現在是3.6.3
抓到的檔案名稱為python-3.6.3.exe - 點兩下剛剛下載的安裝包:Install Python 3.6.3 (32-bit)
勾選 Install Launcher for all users (recommended)
勾選 Add Python 3.6 to PATH
最後選擇Customize installation - Optional Features:這邊通通都選
- Advanced Options:這邊除了下面兩個debug的以外通通安裝
設定Customize install location,也就是要安裝的資料夾位置。為了配合之前安裝Python2的習慣,設定裝在C:\Python36 - Setup was successful:下面會出現一個選項
Disable path length limit,請點選這個選項
- python --version
Python 3.6.3 - where python
C:\Python36\python.exe
C:\Python27\python.exe
都安裝好以後,用Python的套件管理程式PyPI(pip)來安裝套件:
- pip install numpy scipy matplotlib
- pip install ipython
- pip list --fortmat=columns
- echo %path
C:\Python36\Scripts\;C:\Python36\;C:\Python27\;C:\Python27\Scripts;......
- ipython3
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help. - ipython2
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 5.5.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
沒有留言:
張貼留言