English 中文(简体)
如何要求并安装使用 python 3. x 切片的包件?
原标题:How to require and install a package using python 3.x distutils?
最佳回答

自动下载依附关系是setuptools ,这是对distutils 的第三方附加,特别是的参数。关于更多信息,请参见 settools documents document

另一个选项是使用requirements.txt _/a>文件>pip ,而不是使用 aireasi_trement 作为软件安装器。 现已成为推荐的安装器;更多信息见 rel=“nofolpolt>Python包装用户指南

更新 [2015-01]:本答复的上一个版本提到 disprefitte fork 的 setuptools dispreptrate fork 自那时以来已被合并回一个新的活动 settools 工程。 dispreditionte 现在已经不存在,应该不再使用。 setuptools p>p > pip 现在得到了非常积极的维护和支持 Python 3。

问题回答

设置函数 安裝 的引數 < delettils works for me well, 只有当我创建了 sdist 分配性, 比如 : python settingup. py sdist 时, 才会有效 。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...