我正在尝试使用setuptools打包我的应用程序以在PyPi上进行分发。我们的一个依赖项是pysam,我们需要版本> = 8.3,所以在我们的setup.py中我们有:
install_requires = ['pysam>=8.4']
setup(
###lots of stuff here
install_requires=install_requires)
每次运行setup.py时,它会下载并安装pysam,然后告诉我它找不到它:
Extracting pysam-0.2.3-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
pysam 0.2.3 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/pysam-0.2.3-py2.7-linux-x86_64.egg
error: The 'pysam>=0.8.4' distribution was not found and is required by umi-tools
我有点担心它正在谈论pysam 0.2.3,所以我检查了python中的版本
>>> import pysam
>>> pysam.__version__
'0.9.1.4'
正在安装pysam 0.9.1.4。我的问题是: