zoukankan      html  css  js  c++  java
  • Python3 windows如何安装模块 setuptools

    下载的module解压后里面有setup.py文件,如果打开setup.py文件里面有这段代码:

    from setuptools import setup
    ...
    setup(
    ...
    

     这种的都需要调用setuptools模块。

    python3里面没有setuptools模块,但是有distribute模块。作用基本相同,想easy_install,就用distribute in python3.

    步骤

    1. 下载distribute模块,解压。cmd切换到目录。运行setup.py install安装distribute模块。

    2. 解压要安装的模块,cmd切换到目录,运行setup.py install进行安装。(这里用progressbar模块做演示)

    3. 通过setup.py install的模块的一般结构。

    4. 使用import 模块进行测试。如果import 模块没有问题,基本就安装成功。

    5. 打开模块里面的examples.py文件, F5运行下吧。看看各种examples。

  • 相关阅读:
    元素显示v-show
    条件渲染v-if
    v-bind:class
    Class绑定v-bind:class
    设定计算属性setter
    观察属性$watch
    计算属性computed
    过滤器filters
    jk_proxy实现apache+tomcat负载均衡
    (WPF)Storyboard
  • 原文地址:https://www.cnblogs.com/herbert/p/3469726.html
Copyright © 2011-2022 走看看