首先我嘗試了在cmd窗口運行:會出現Exception異常(爆出一堆紅字)。后來考慮是權限問題,采用管理員身份開啟cmd,以下任選一個命令輸入:
pip install pandas
python -m pip install pandas
報錯:ERROR: Could not find a version that satisfies the requirement pandas (from versions: none);ERROR: No matching distribution found for pandas

由於我本機安裝了python2和python3,pip在這時難以決斷符合的版本,就連使用python -m指定當前版本依然不行,所以必須聲明清楚是使用哪個解釋器的pip:
執行:
py -3 -m pip install pandas
表示指定使用python3的pip,同理-2參數表示使用python2的pip。

如果下載過慢,可以換源:
py -3 -m pip install pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

出現Successfully installed的提示則說明安裝成功。
