Python环境搭建
Python27
1、在www.python.org下载安装Python
2、python -m pip install --upgrade pip
3、安装常用库:numpy、scipy、matplotlib
pip install numpy pip install scipy pip install matplotlib
4、opencv库的安装:复制C:\opencv_2.4.9\build\python\2.7\x86\cv2.pyd到C:\Python27\Lib\site-packages目录下
5、安装VS2013插件PTVS 2.2 VS 2013.msi
Python35
1、安装python-3.5.2.exe
2、到http://www.lfd.uci.edu/~gohlke/pythonlibs下载whl包
3、pip3 install XXX.whl安装whl包
pip3 install numpy-1.11.2+mkl-cp35-cp35m-win32.whl pip3 install scipy-0.18.1-cp35-cp35m-win32.whl pip3 install opencv_python-3.1.0-cp35-cp35m-win32.whl pip3 install pytz-2016.10-py2.py3-none-any.whl pip3 install pyparsing-2.1.10-py2.py3-none-any.whl pip3 install cycler-0.10.0-py2.py3-none-any.whl pip3 install python_dateutil-2.6.0-py2.py3-none-any.whl pip3 install matplotlib-1.5.3-cp35-cp35m-win32.whl
4、安装PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x32-2.exe
5、安装PTVS 2.2 VS 2013.msi
其它方法:
python -m pip install --upgrade pip pip3 install numpy pip3 install scipy pip3 install matplotlib pip3 install pyqt5