• 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

    我们仍未知道那天所看见的花的名字
  • 相关阅读:
    Spring基础学习
    云服务器配置java环境
    Struts2学习笔记(一)--入门常见配置
    Hibernate学习笔记(二)
    Hibernate学习笔记(一)
    java---Listener & Filter知识点学习
    java----DBUtils知识点补充
    java----连接池C3p0使用的补充
    IOS之表视图单元格删除、移动及插入
    IOS之表视图添加索引
  • 原文地址:https://www.cnblogs.com/menma/p/4190924.html
Copyright © 2020-2023  润新知