zoukankan      html  css  js  c++  java
  • Windows下Python开发环境配置

     开发环境如下:

    操作系统:      Windows 7 32/64位

    开发语言及工具:     Python 2.7.6, Setuptools 9.1, Pip 6.0.3

    开发IDE:        Ulipad, wxPython 3.0, comtypes 1.1.1

    其他工具:      py2exe, pyodbc等

      

    1、install python

      去下载pywin32,并安装。

    2、install setuptools

      备注:“好压”都可以解压。

    •   解压后双击运行“easy_install.py”,成功后会在"C:Python27"下新建文件夹“Scripts”,里面会有6个easy_install相关的文件,含easy_install.exe。

    3、install pip

    •   去http://pip.readthedocs.org/en/latest/installing.html,下载get-pip.py
    •   双击运行“get-pip.py”,成功后会在"C:Python27Scripts"下看到3个pip相关的文件,含pip.exe。
    •   添加环境变量,右键计算机-属性-高级系统设置-环境变量-系统变量-Path-编辑-变量值,在末尾添加pip的路径,如“;C:Python27Scripts”。
    •       重启计算机,成功后运行cmd,即可像在linux里一般使用pip了。

      备注:使用pip install ***,可能会出现如下错误“unicodedecodeerror: ascii codec can't decode”,解决办法为在报错的页面(见报错信息末尾!)添加代码:    

    import sys
    reload(sys)
    sys.setdefaultencoding('gb18030') 
    

    4、install ulipad

      

     

  • 相关阅读:
    iOS开发之--打印一堆奇怪东西的解决方案
    iOS开发之--从URL加载图片
    iOS开发之--搭建本地的SVN服务器
    HTML5
    swift
    swift
    HTML 换行
    HTML 注释
    HTML 水平线
    /etc/rc.d/rc.local
  • 原文地址:https://www.cnblogs.com/Amagasaki/p/4194182.html
Copyright © 2011-2022 走看看