2017年3月14日 星期二

My Python note in Windows

My Python note in Windows

1. Python 已經內建pip,只需要update即可
C:\Python27\Scripts
python -m pip install -U pip

2. 透過pip安裝我常用的套件
pip install matplotlib BeautifulSoup selenium pandas requests bs4 jieba scikit-learn

3. 除了 scipy要另外單獨下載安裝
下載網址,注意他有for Python的版本喔!
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
pip install scipy-0.19.0-cp27-cp27m-win32.whl

另外,因為scipy是獨立安裝的關係吧,需要手動安裝numpy+MKL才行。
下載網址 http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
pip install numpy‑1.11.3+mkl‑cp27‑cp27m‑win32.whl



以上筆記參考網址如下:
https://pip.pypa.io/en/latest/installing/#upgrading-pip
http://stackoverflow.com/questions/37267399/importerror-cannot-import-name-numpy-mkl