[英]Could not find a version that satisfies the requirement
I am trying to create a library distributed with pip. 我正在尝试创建一个通过pip分发的库。
sudo python setup.py sdist upload -r pypitest
when I try to install it with 当我尝试使用
sudo pip install -i https://testpypi.python.org/pypi abce
It fails with 它失败了
Could not find a version that satisfies the requirement pandas>=0.17 (from abce) (from versions: ) No matching distribution found for pandas>=0.17 (from abce)
找不到满足要求的版本pandas> = 0.17(来自abce)(来自版本:)找不到匹配的发行版pandas> = 0.17(来自abce)
I tried no for a day, but I can't make it work. 我一整天都没有尝试过,但无法正常工作。 When I install pandas with
pip install pandas
it installs the 0.18.1 version. 当我通过
pip install pandas
它将安装0.18.1版本。 What am I doing wrong? 我究竟做错了什么?
The setup.py is the following: setup.py如下:
#!/usr/bin/env python
import os
try:
from setuptools import setup
from setuptools import Extension
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
cmdclass = { }
ext_modules = [ ]
try:
from Cython.Distutils import build_ext
ext_modules += [
Extension("abce.trade", [ "abce/trade.pyx" ]),
]
cmdclass.update({ 'build_ext': build_ext })
except ImportError:
ext_modules += [
Extension("abce.trade", [ "abce/trade.c" ]),
]
setup(name='abce',
version='0.5.07b',
author='Davoud Taghawi-Nejad',
author_email='Davoud@Taghawi-Nejad.de',
description='Agent-Based Complete Economy modelling platform',
url='https://github.com/DavoudTaghawiNejad/abce.git',
package_dir={'abce': 'abce'},
packages=['abce'],
long_description=open('README.rst').read(),
install_requires=['numpy>=1.9',
'pandas>=0.17',
'networkx>=1.9',
'flask>=0.10',
'bokeh>=0.11',
'matplotlib>=1.3'],
include_package_data=True,
ext_modules=ext_modules,
cmdclass=cmdclass)
On day later: 在第二天:
pip was searching the packages on piptest, but actually the ABCE package should come from piptest and the requirments should come from pip: pip在piptest上搜索软件包,但实际上ABCE软件包应该来自piptest,需求应该来自piptest:
sudo pip install -i https://testpypi.python.org/pypi --extra-index-url https://pypi.python.org/pypi abce
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.