===============================
Installing and Using Setuptools
===============================
.. contents:: **Table of Contents**
-------------------------
Installation Instructions
-------------------------
Upgrading from Distribute
=========================
Currently, Distribute disallows installing Setuptools 0.7+ over Distribute.
You must first uninstall any active version of Distribute first (see
`Uninstalling`_).
Upgrading from Setuptools 0.6
=============================
Upgrading from prior versions of Setuptools is supported. Initial reports
good success in this regard.
Windows
=======
The recommended way to install setuptools on Windows is to download
`ez_setup.py`_ and run it. The script will download the appropriate .egg
file and install it for you.
.. _ez_setup.py: https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py
For best results, uninstall previous versions FIRST (see `Uninstalling`_).
Once installation is complete, you will find an ``easy_install.exe`` program in
your Python ``Scripts`` subdirectory. For simple invocation and best results,
add this directory to your ``PATH`` environment variable, if it is not already
present.
Unix-based Systems including Mac OS X
=====================================
Download `ez_setup.py`_ and run it using the target Python version. The script
will download the appropriate version and install it for you::
> wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py -O - | python
Note that you will may need to invoke the command with superuser privileges to
install to the system Python.
Alternatively, on Python 2.6 and later, Setuptools may be installed to a
user-local path::
> wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py
> python ez_setup.py --user
Advanced Installation
=====================
For more advanced installation options, such as installing to custom
locations or prefixes, download and extract the source
tarball from `Setuptools on PyPI <https://pypi.python.org/pypi/setuptools>`_
and run setup.py with any supported distutils and Setuptools options.
For example::
setuptools-x.x$ python setup.py --prefix=/opt/setuptools
Use ``--help`` to get a full options list, but we recommend consulting
the `EasyInstall manual`_ for detailed instructions, especially `the section
on custom installation locations`_.
.. _EasyInstall manual: https://pythonhosted.org/setuptools/EasyInstall
.. _the section on custom installation locations: https://pythonhosted.org/setuptools/EasyInstall#custom-installation-locations
Downloads
=========
All setuptools downloads can be found at `the project's home page in the Python
Package Index`_. Scroll to the very bottom of the page to find the links.
.. _the project's home page in the Python Package Index: https://pypi.python.org/pypi/setuptools
In addition to the PyPI downloads, the development version of ``setuptools``
is available from the `Bitbucket repo`_, and in-development versions of the
`0.6 branch`_ are available as well.
.. _Bitbucket repo: https://bitbucket.org/pypa/setuptools/get/default.tar.gz#egg=setuptools-dev
.. _0.6 branch: http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06
Uninstalling
============
On Windows, if Setuptools was installed using an ``.exe`` or ``.msi``
installer, simply use the uninstall feature of "Add/Remove Programs" in the
Control Panel.
Otherwise, to uninstall Setuptools or Distribute, regardless of the Python
version, delete all ``setuptools*`` and ``distribute*`` files and
directories from your system's ``site-packages`` directory
(and any other ``sys.path`` directories) FIRST.
If you are upgrading or otherwise plan to re-install Setuptools or Distribute,
nothing further needs to be done. If you want to completely remove Setuptools,
you may also want to remove the 'easy_install' and 'easy_install-x.x' scripts
and associated executables installed to the Python scripts directory.
--------------------------------
Using Setuptools and EasyInstall
--------------------------------
Here are some of the available manuals, tutorials, and other resources for
learning about Setuptools, Python Eggs, and EasyInstall:
* `The EasyInstall user's guide and reference manual`_
* `The setuptools Developer's Guide`_
* `The pkg_resources API reference`_
* `Package Compatibility Notes`_ (user-maintained)
* `The Internal Structure of Python Eggs`_
Questions, comments, and bug reports should be directed to the `distutils-sig
mailing list`_. If you have written (or know of) any tutorials, documentation,
plug-ins, or other resources for setuptools users, please let us know about
them there, so this reference list can be updated. If you have working,
*tested* patches to correct problems or add features, you may submit them to
the `setuptools bug tracker`_.
.. _setuptools bug tracker: https://bitbucket.org/pypa/setuptools/issues
.. _Package Compatibility Notes: https://pythonhosted.org/setuptools/PackageNotes
.. _The Internal Structure of Python Eggs: https://pythonhosted.org/setuptools/formats.html
.. _The setuptools Developer's Guide: https://pythonhosted.org/setuptools/setuptools.html
.. _The pkg_resources API reference: https://pythonhosted.org/setuptools/pkg_resources.html
.. _The EasyInstall user's guide and reference manual: https://pythonhosted.org/setuptools/easy_install.html
.. _distutils-sig mailing list: http://mail.python.org/pipermail/distutils-sig/
-------
Credits
-------
* The original design for the ``.egg`` format and the ``pkg_resources`` API was
co-created by Phillip Eby and Bob Ippolito. Bob also implemented the first
version of ``pkg_resources``, and supplied the OS X operating system version
compatibility algorithm.
* Ian Bicking implemented many early "creature comfort" features of
easy_install, including support for downloading via Sourceforge and
Subversion repositories. Ian's comments on the Web-SIG about WSGI
application deployment also inspired the concept of "entry points" in eggs,
and he has given talks at PyCon and elsewhere to inform and educate the
community about eggs and setuptools.
* Jim Fulton contributed time and effort to build automated tests of various
aspects of ``easy_install``, and supplied the doctests for the command-line
``.exe`` wrappers on Windows.
* Phillip J. Eby is the principal author and maintainer of setuptools, and
first proposed the idea of an importable binary distribution format for
Python application plug-ins.
* Significant parts of the implementation of setuptools were funded by the Open
Source Applications Foundation, to provide a plug-in infrastructure for the
Chandler PIM application. In addition, many OSAF staffers (such as Mike
"Code Bear" Taylor) contributed their time and stress as guinea pigs for the
use of eggs and setuptools, even before eggs were "cool". (Thanks, guys!)
.. _files:
没有合适的资源?快使用搜索试试~ 我知道了~
setuptools-0.9.1.zip
共137个文件
py:71个
txt:33个
exe:8个
0 下载量 189 浏览量
2024-05-12
23:39:42
上传
评论
收藏 813KB ZIP 举报
温馨提示
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
资源推荐
资源详情
资源评论
收起资源包目录
setuptools-0.9.1.zip (137个子文件)
launcher.c 10KB
hello.c 6KB
hellolib.c 61B
setup.cfg 332B
theme.conf 71B
basic.css 8KB
nature.css 4KB
pygments.css 3KB
pygments.css 3KB
nature.css_t 4KB
entries-v10 3KB
gui-64.exe 74KB
cli-64.exe 73KB
cli-arm-32.exe 68KB
gui-arm-32.exe 68KB
cli-32.exe 64KB
cli.exe 64KB
gui-32.exe 64KB
gui.exe 64KB
indexsidebar.html 311B
index.html 174B
external.html 92B
MANIFEST.in 330B
Makefile 2KB
entry_points.txt.orig 3KB
dependency_links.txt.orig 655B
requires.txt.orig 186B
PKG-INFO 45KB
PKG-INFO 45KB
PKG-INFO 153B
pkg_resources.py 99KB
doctest.py 97KB
easy_install.py 73KB
package_index.py 35KB
dist.py 31KB
test_resources.py 23KB
bdist_egg.py 18KB
egg_info.py 15KB
_sha512.py 14KB
test_easy_install.py 14KB
__init__.py 12KB
test_sdist.py 12KB
build_ext.py 12KB
_sha256.py 11KB
build_py.py 10KB
_sha.py 10KB
sdist.py 10KB
sandbox.py 9KB
ez_setup.py 8KB
setup.py 8KB
ssl_support.py 7KB
upload_docs.py 7KB
upload.py 7KB
conf.py 6KB
archive_util.py 6KB
develop.py 6KB
depends.py 6KB
test.py 6KB
test_packageindex.py 5KB
setopt.py 5KB
__init__.py 5KB
install.py 4KB
markers.py 4KB
install_egg_info.py 4KB
test_test.py 4KB
test_develop.py 4KB
__init__.py 3KB
manual_test.py 3KB
compat.py 3KB
server.py 3KB
test_dist_info.py 3KB
install_lib.py 2KB
alias.py 2KB
site-patch.py 2KB
test_pkg_resources.py 2KB
bdist_wininst.py 2KB
test_markerlib.py 2KB
test_upload_docs.py 2KB
install_scripts.py 2KB
rotate.py 2KB
bdist_rpm.py 2KB
test_bdist_egg.py 2KB
test_ez_setup.py 2KB
test_sandbox.py 2KB
release.py 2KB
extension.py 1KB
test_egg_info.py 1KB
saveopts.py 705B
__init__.py 689B
test_build_ext.py 673B
__init__.py 552B
py24compat.py 332B
py27compat.py 306B
script template (dev).py 288B
register.py 277B
py26compat.py 267B
setup.py 264B
test_hello.py 175B
script template.py 163B
easy_install.py 126B
共 137 条
- 1
- 2
资源评论
程序员Chino的日记
- 粉丝: 3719
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- python的uds诊断相关接口
- 视觉生成领域中的并行自回归模型加速研究
- 基于51单片机和DS18B20的温度检测和报警系统,可设置报警温度上下限,输出温度采用数码管显示
- 2020年山东省职业院校技能大赛网络搭建与应用赛题
- bp神经网络交叉验证算法和确定最佳隐含层节点个数matlab 程序,直接运行即可 数据excel格式,注释清楚,效果清晰,一步上手
- 基于51单片机设计的火灾报警器,传感器包括烟雾,光强,温度传感器,同时本工程包含了labview的上位机
- Python毕业设计-YOLOV5火灾火焰烟雾检测数据集+训练好的模型+标注好的数据+pyqt界面+源码
- Minecraft Python Console
- llvm cmake fsf fasdf der
- 445981218017804USB摄像头.apk
- Python毕业设计-YOLOV5火灾火焰烟雾检测数据集+模型+源码
- 预训练扩散变换器线性化优化方法:引入CLEAR机制加速图像生成
- 基于YOLOv5的神经网络训练用于检测火灾初期的火焰和烟雾模型源码+数据集
- Python毕业设计-基于YOLOv5的神经网络训练用于检测火灾初期的火焰和烟雾模型源码+数据集
- 基于PINN方法的热传导问题求解及结果输出
- Python基于YOLOv5的神经网络训练用于检测火灾初期的火焰和烟雾模型源码+数据集
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功