• python2.7安装setuptools


    下载:
     
    python的egg文件有点像java中的jar文件,是一个工程打包文件,便于安装部署,仅此一点,给多少pythoner带来了多少激动。而setup tools就是一个提供包管理的工具或者说是软件。
     
    再次参考:
    发现easy_install 方法不好用,先安装easy_install
     
    python2.7中有easy_install方法。
     
    1、配置path中 easy_install所在的地址
    2、cmd中输入 easy_install virtualenv
     
    D:\Users\tony>easy_install virtualenv
    Searching for virtualenv
    Reading http://pypi.python.org/simple/virtualenv/
    Best match: virtualenv 15.0.3
    Downloading https://pypi.python.org/packages/8b/2c/c0d3e47709d0458816167002e1aa3
    d64d03bdeb2a9d57c5bd18448fd24cd/virtualenv-15.0.3.tar.gz#md5=a5a061ad8a37d973d27
    eb197d05d99bf
    Processing virtualenv-15.0.3.tar.gz
    Running virtualenv-15.0.3\setup.py -q bdist_egg --dist-dir d:\users\tony\appdata
    \local\temp\easy_install-d07egc\virtualenv-15.0.3\egg-dist-tmp-_n55l5
    warning: no previously-included files matching '*' found under directory 'docs\_
    templates'
    warning: no previously-included files matching '*' found under directory 'docs\_
    build'
    Adding virtualenv 15.0.3 to easy-install.pth file
    Installing virtualenv-script.py script to d:\software\python2.7\Scripts
    Installing virtualenv.exe script to d:\software\python2.7\Scripts
    Installing virtualenv.exe.manifest script to d:\software\python2.7\Scripts
     
    Installed d:\software\python2.7\lib\site-packages\virtualenv-15.0.3-py2.7.egg
    Processing dependencies for virtualenv
    Finished processing dependencies for virtualenv
     
    接下来就是配置egg了
     
     
    D:\Users\tony>easy_install  setuptools-0.6c11-py2.7
    Searching for setuptools-0.6c11-py2.7
    Reading https://pypi.python.org/simple/setuptools-0.6c11-py2.7/
    Couldn't find index page for 'setuptools-0.6c11-py2.7' (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    error: ('The read operation timed out',)
     
    最后失败了。
    http://peak.telecommunity.com/dist/ez_setup.py后下载该文档。貌似是安装成功了
     
    D:\>ez_setup.py
    Setuptools version 0.6c11 or greater has been installed.
    (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)
     
    D:\>ez_setup.py -U setuptools
    Searching for setuptools
    Reading https://pypi.python.org/simple/setuptools/
    Best match: setuptools 27.3.0
    Processing setuptools-27.3.0-py2.7.egg
    setuptools 27.3.0 is already the active version in easy-install.pth
    Installing easy_install-script.py script to D:\software\python2.7\Scripts
    Installing easy_install.exe script to D:\software\python2.7\Scripts
    Installing easy_install-2.7-script.py script to D:\software\python2.7\Scripts
    Installing easy_install-2.7.exe script to D:\software\python2.7\Scripts
     
    Using d:\software\python2.7\lib\site-packages\setuptools-27.3.0-py2.7.egg
    Processing dependencies for setuptools
    Finished processing dependencies for setuptools
     
     
    或许,之前egg就安装成功了,我太笨,不知道验证方法而已
  • 相关阅读:
    查找(线性索引)
    查找(顺序表&有序表)
    数据结构图之六(关键路径)
    数据结构图之五(拓扑排序)
    数据结构图之四(最短路径--弗洛伊德算法)
    数据结构图之三(最短路径--迪杰斯特拉算法)
    数据结构图之二(最小生成树--克鲁斯卡尔算法)
    数据结构图之二(最小生成树--普里姆算法)
    数据结构图之一(基本概念,存储结构,两种遍历)
    数据结构--堆
  • 原文地址:https://www.cnblogs.com/q2z2012/p/5997337.html
Copyright © 2020-2023  润新知