Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pip安装无法从artifactory解析版本_Python_Python 3.x_Pip_Artifactory - Fatal编程技术网

Python pip安装无法从artifactory解析版本

Python pip安装无法从artifactory解析版本,python,python-3.x,pip,artifactory,Python,Python 3.x,Pip,Artifactory,在ubuntu机器上使用pip install-r requirement.txt安装时(它有avro-python3)。我得到以下错误,它曾经是一个警告,但现在它的结果是错误的 Collecting avro-python3==1.9.2.1 Downloading https://artifactory/avro-python3-1.9.2.1.tar.gz (37 kB) WARNING: Requested avro-python3==1.9.2.1 from https://art

在ubuntu机器上使用
pip install-r requirement.txt安装时(它有avro-python3)。我得到以下错误,它曾经是一个警告,但现在它的结果是错误的

Collecting avro-python3==1.9.2.1
  Downloading https://artifactory/avro-python3-1.9.2.1.tar.gz (37 kB)
WARNING: Requested avro-python3==1.9.2.1 from https://artifactory/avro-python3-1.9.2.1.tar.gz#sha256=ca1e77a3da5ac98e8833588f71fb2e170b38e34787ee0e04920de0e9470b7d32 (from -r requirements.txt (line 4)), but installing version file-.avro-VERSION.txt
ERROR: Requested avro-python3==1.9.2.1 from  https://artifactory/avro-python3-1.9.2.1.tar.gz#sha256=ca1e77a3da5ac98e8833588f71fb2e170b38e34787ee0e04920de0e9470b7d32 (from -r requirements.txt (line 4)) has different version in metadata: 'file-.avro-VERSION.txt'
我的requirements.txt看起来像

avro-python3==1.9.2.1

有没有办法避免这个错误

要解决此问题,需要解决哪些问题

是否有一种方法可以在requirement.txt中指定?不将artifactory用于此软件包?

我从PyPI下载。其
setup.cfg
文件如下所示:

[元数据]
名称=avro-python3
版本=文件:avro/version.txt
description=Avro是一个序列化和RPC框架。
...
注意版本行和
文件:
符号。此符号添加在setuptools 39.2.0中:

因此,请确保您的setuptools版本至少为39.2.0,并且可能工作得更好(也许升级pip也会有所帮助)。

我从PyPI下载的。其
setup.cfg
文件如下所示:

[元数据]
名称=avro-python3
版本=文件:avro/version.txt
description=Avro是一个序列化和RPC框架。
...
注意版本行和
文件:
符号。此符号添加在setuptools 39.2.0中:


因此,请确保您的setuptools版本至少为39.2.0,并且可能工作得更好(也许升级pip也会有帮助)。

请描述您试图安装的内容,您的系统是什么!你看到了吗?这回答了你的问题吗@这并不能解决我的问题。我正在指定固定版本,pip可以从artifactory获取它,但在安装git时,您可能需要更新pip和setuptools。请描述您尝试安装的内容,您的系统是什么!你看到了吗?这回答了你的问题吗@这并不能解决我的问题。我正在指定固定版本,pip可以从artifactory获取它,但在安装git时,您可能需要更新pip和setuptools。我在尝试安装avro时遇到了相同的问题。升级setuptools对我有用!我在尝试安装avro时遇到了相同的问题。升级setuptools对我有用!