我正在尝试使用pip来设置一个环境,并且从我的项目的根目录运行pip install -e ./并不能获得所有内容。我有一个包含requires部分的setup.py文件,如下所示:
requires = [
'phonenumbers',
'inflect',
'repoze.sendmail==4.1',
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'pyramid_mailer',
'pyramid_tm',
'transaction',
'zope.sqlalchemy',
'waitress',
'pyramid_beaker',
'cryptacular',
'pycrypto',
'webtest',
'alembic',
'psycopg2',
'python-dateutil',
'sqlalchemy-utils',
'cryptacular',
'arrow',
'jsonpickle',
'sqlalchemy',
'pyramid_storage',
'boto',
'requests'
]运行该命令时,将不会安装某些库,例如boto。有人知道为什么会错过这些包吗?
编辑:下面是在setup.py中设置的调用,省略了一些不相关的部分:
dependency_links = [
'git+https://github.com/benthor/inflect.py#egg=inflect',
]
setup(
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web wsgi bfg pylons pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='test',
install_requires=requires,
dependency_links=dependency_links
)发布于 2015-02-20 00:56:52
setup()的requires参数实际上并没有做任何事情,而且在所有的意图和目的上,都应该被认为是被弃用的和无用的。
请改用install_requires。
https://stackoverflow.com/questions/28612191
复制相似问题