python几个命令

磊落不羁 by:磊落不羁 分类:语法字符串 时间:2年前 阅读:65 评论:0

1. 查看本机是否安装python

python -version

2. 查看安装位置

import sys
sys.executable

3.更新pip:

python -m pip install --upgrade pip

4.使用国内豆瓣镜像

pip install wxPython -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com  #可视化界面
pip install Kivy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com   #kivy是一个开源工具包能够让使用相同源代码创建的程序能跨平台运行,主要关注新型用户界面开发,比如多点触摸程序
pip install Flexx -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com  #flexx用来创建图形化界面应用程序,科使用web技术进行界面渲染
pip install Pywin32 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com #容许你像VC一样的形式来使用Python开发win32程序
pip install Pygame -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com #游戏模块
pip install xlrd -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com #表格读取
pip install xlwt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com #表格写入



–trusted-host pypi.douban.com 这是为了获得ssl证书的认证,要不然会报错


非特殊说明,本文版权归原作者所有,转载请注明出处

本文地址:http://php.liulei.com.cn/?type=acticle&id=13

评论列表

发表评论

  • 昵称(必填)
  • 邮箱
  • 网址

TOP