如何在 Windows 上为 Python 2.6 设置 Setuptools? [英] How do I set up Setuptools for Python 2.6 on Windows?

查看:62
本文介绍了如何在 Windows 上为 Python 2.6 设置 Setuptools?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在没有 exe 安装程序的情况下在 Windows 中为 Python 2.6 安装 Setuptools?

Is there any way to install Setuptools for Python 2.6 in Windows without having an exe installer?

目前还没有构建,Setuptools 的维护者表示可能需要一段时间才能完成.

There isn't one built at the moment, and the maintainer of Setuptools has stated that it will probably be a while before he'll get to it.

有谁知道安装它的方法吗?

Does anyone know of a way to install it anyway?

推荐答案

第一个选项 - 在线安装(即在整个安装过程中保持连接到 Internet):

First Option - Online Installation (i.e. remaining connected to the Internet during the entire installation process):

  1. 下载setuptools-0.6c9.tar.gz
  2. 使用 7-zip 将其解压缩到 Windows Python 安装之外的文件夹(目录)文件夹
  3. 转到文件夹(请参阅第 2 步)并从相应的 dos(命令)提示符运行 ez_setup.py
  4. 确保您的 PATH 包含适当的 C:\Python2X\Scripts 目录
  1. Download setuptools-0.6c9.tar.gz
  2. Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder
  3. Go the folder (refer step 2) and run ez_setup.py from the corresponding dos (command) prompt
  4. Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory

第二个选项:

  1. 下载setuptools-0.6c9.tar.gz
  2. 下载setup-0.6c9-py2.6.egg 到 Windows Python 安装文件夹外的文件夹(目录)
  3. 使用 7-zip 将 ez_setup.py 解压缩到 setuptools-0.6c.鸡蛋
  4. 转到相应的dos提示符并从命令提示符运行python ez_setup.py setuptools-0.6c9-py2.6.egg
  5. 确保您的 PATH 包含适当的 C:\Python2X\Scripts 目录
  1. Download setuptools-0.6c9.tar.gz
  2. Download setuptools-0.6c9-py2.6.egg to a folder(directory) outside your Windows Python installation folder
  3. Use 7-zip to extract ez_setup.py in the same folder as setuptools-0.6c9-py2.6.egg
  4. Go to the corresponding dos prompt and run python ez_setup.py setuptools-0.6c9-py2.6.egg from the command prompt
  5. Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory

第三个选项(假设您的机器上有 Visual Studio 2005 或 MinGW)

Third Option (assuming that you have Visual Studio 2005 or MinGW on your machine)

  1. 下载setuptools-0.6c9.tar.gz
  2. 使用 7-zip 将其解压缩到 Windows Python 安装之外的文件夹(目录)文件夹
  3. 转到文件夹(请参阅第 2 步)并从相应的 dos(命令)提示符运行 python setup.py install
  1. Download setuptools-0.6c9.tar.gz
  2. Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder
  3. Go the folder (refer step 2) and run python setup.py install from the corresponding dos (command) prompt

请提供反馈.

这篇关于如何在 Windows 上为 Python 2.6 设置 Setuptools?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆