python入门

win python3安装部署

安装

  • 安装包下载
  • 设置安装目录的系统环境变量:C:\Programs\Python36\Scripts 和 C:\Programs\Python36
  • 测试python版本:python -V
  • 测试pip版本:pip3 -V (如果不存在,直接用下面的命令更新pip)
  • 更新pip: python -m pip install --upgrade pip
  • pip相关命令 pip[options]
# 安装PIL: pip install pillow -i xxxx --trusted-host mirrors.aliyun.com
# 安装cv2:  pip install opencv-python
# 手动安装  pip install xxx.whl
# 安装时指定源 -i
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
图像处理相关python包: myqr MyQR numpy pillow opencv olefile pytesseract PyQt5
  • pip常用命令
 install                    安装包.
 uninstall                  卸载包.
 freeze                     按着一定格式输出已安装包列表
 list                       列出已安装包.
 show                       显示包详细信息.
 search                     搜索包,类似yum里的search.
 wheel                      Buildwheelsfromyourrequirements.
 zip                        不推荐.Zipindividualpackages.
 unzip                      不推荐.Unzipindividualpackages.
 bundle                     不推荐.Createpybundles.
 help                       当前帮助.

GeneralOptions:
 -h,--help                 显示帮助.
 -v,--verbose              更多的输出,最多可以使用3次
 -V,--version              现实版本信息然后退出.
 -q,--quiet                最少的输出.
 --log-file          覆盖的方式记录verbose错误日志,默认文件:/root/.pip/pip.log
 --log               不覆盖记录verbose输出的日志.
 --proxy            Specifyaproxyintheform[user:passwd@]proxy.server:port.
 --timeout            连接超时时间(默认15秒).
 --exists-action   Defaultactionwhenapathalreadyexists:(s)witch,(i)gnore,(w)ipe,(b)ackup.
 cert                证书

windows 10环境下安装Tesseract-OCR与python集成

tesseract 安装及使用
selenium

你可能感兴趣的:(python入门)