首页 > 代码库 > windows下安装python的easy_install工具
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:\python27\python ez_setup.py install。
看到这样的结果,说明安装完毕:
测试,如果看到下面内容,说明安装成功了。
C:\Python27\Scripts>easy_install --helpGlobal 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 directoryOptions 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:\Users\scope\AppData\Roaming\Python\Python27\s ite-packages‘usage: easy_install-script.py [options] requirement_or_url ... or: easy_install-script.py --help
windows下安装python的easy_install工具
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。