zoukankan      html  css  js  c++  java
  • 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

    我们仍未知道那天所看见的花的名字
  • 相关阅读:
    图书管理系统(view)前后端调联 (copy)
    图书管理系统(modelviewset)前后端调联
    工单系统表的设计
    初始化工单项目及配置
    重要概念 什么是web容器 Linux下安装部署njinx+uwsgi+django+vue
    ubuntu下安装docker django使用whoosh搜索引擎 使用es(elasticsearch)代替whoosh
    RBAC权限管理基本概念与实现
    Django支付宝(沙箱)后端接口
    使用七牛云上传 并将本地图片视屏上传
    展示课程
  • 原文地址:https://www.cnblogs.com/menma/p/4190924.html
Copyright © 2011-2022 走看看