• windows下安装python的easy_install工具


    有三种方式进行安装:

    1、到https://pypi.python.org/packages/找到合适的可执行文件,下载进行安装。

    2、如果系统装有PowerShell3或更高版本,可以通过以下命令进行安装:

    > (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -

      注意:需用管理员身份运行PowerShell。

    3、通过python来运行一个安装文件。

      1)、将https://bootstrap.pypa.io/ez_setup.py的内容复制到一个文本文档,然后重命名为ez_setupy.py。

      2)、运行命令:C:python27python ez_setup.py install。

      看到这样的结果,说明安装完毕:

      

      

    测试,如果看到下面内容,说明安装成功了。

    C:Python27Scripts>easy_install --help
    
    Global options:
      --verbose (-v)  run verbosely (default)
      --quiet (-q)    run quietly (turns verbosity off)
      --dry-run (-n)  don't actually do anything
      --help (-h)     show detailed help message
      --no-user-cfg   ignore pydistutils.cfg in your home directory
    
    Options for 'easy_install' command:
      --prefix                   installation prefix
      --zip-ok (-z)              install package as a zipfile
      --multi-version (-m)       make apps have to require() a version
      --upgrade (-U)             force upgrade (searches PyPI for latest versions)
      --install-dir (-d)         install package to DIR
      --script-dir (-s)          install scripts to DIR
      --exclude-scripts (-x)     Don't install scripts
      --always-copy (-a)         Copy all needed packages to install dir
      --index-url (-i)           base URL of Python Package Index
      --find-links (-f)          additional URL(s) to search for packages
      --build-directory (-b)     download/extract/build in DIR; keep the results
      --optimize (-O)            also compile with optimization: -O1 for "python -
                                 O", -O2 for "python -OO", and -O0 to disable
                                 [default: -O0]
      --record                   filename in which to record list of installed
                                 files
      --always-unzip (-Z)        don't install as a zipfile, no matter what
      --site-dirs (-S)           list of directories where .pth files work
      --editable (-e)            Install specified packages in editable form
      --no-deps (-N)             don't install dependencies
      --allow-hosts (-H)         pattern(s) that hostnames must match
      --local-snapshots-ok (-l)  allow building eggs from local checkouts
      --version                  print version information and exit
      --no-find-links            Don't load find-links defined in packages being
                                 installed
      --user                     install in user site-package
                                 'C:UsersscopeAppDataRoamingPythonPython27s
                                 ite-packages'
    
    usage: easy_install-script.py [options] requirement_or_url ...
       or: easy_install-script.py --help

    我们仍未知道那天所看见的花的名字
  • 相关阅读:
    idoc 和 bapi 和 rfc 之间的区别
    ABAP--如何在ALV_Grid的函数中定义下拉列表
    ABAP
    关于SAP的视图类型
    程序中条用其他程序中已经存在的PERFORM
    通过SMATFORMS打印程序的参考模板
    字号尺寸大小对照表
    ubuntu 没有桌面 没有图标,只剩下壁纸
    latex ctex 的section不能写中文, /href
    System Verilog的概念以及与verilog的对比
  • 原文地址:https://www.cnblogs.com/menma/p/4190924.html
Copyright © 2020-2023  润新知