Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.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安装失败,出现“0”;ValueError:';格式';在“槽”中“与类变量冲突”;_Python_Pip - Fatal编程技术网

Python pip安装失败,出现“0”;ValueError:';格式';在“槽”中“与类变量冲突”;

Python pip安装失败,出现“0”;ValueError:';格式';在“槽”中“与类变量冲突”;,python,pip,Python,Pip,尝试在OSX El Capitan上安装python软件包progressbar时,出现以下错误: Collecting progressbar Using cached progressbar-2.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 20, in

尝试在OSX El Capitan上安装python软件包
progressbar
时,出现以下错误:

Collecting progressbar
  Using cached progressbar-2.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar/setup.py", line 5, in <module>
        import progressbar
      File "/private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar/progressbar/__init__.py", line 59, in <module>
        from progressbar.widgets import *
      File "/private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar/progressbar/widgets.py", line 121, in <module>
        class FileTransferSpeed(Widget):
      File "/Users/<USERNAME>/anaconda/lib/python3.4/abc.py", line 133, in __new__
        cls = super().__new__(mcls, name, bases, namespace)
    ValueError: 'format' in __slots__ conflicts with class variable

----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar

如何解决这个问题?

原始软件包不能与python3一起使用,但是,有一个fork可以使用,您可以从中克隆并运行它

然而,我不想检查功能本身是否工作,所以YMMV,但它至少安装了:)

[编辑]

@shadi 2017年1月30日更新:progressbar的github repo表示要使用
pip3安装progressbar33

谢谢

我使用了pip3安装progressbar33,但在安装autosub时

ValueError插槽中的“格式”与类变量冲突


您是否尝试使用-
pip安装--no cache dir
?这返回“您必须至少给出一个安装要求(请参阅“pip help install”)”我是否需要添加更多?运行“pip安装--no cache dir progressbar”返回与上面相同的错误代码1我确认它与python 3.4不兼容。Python2.7可以很好地安装。事实上,python3不能使用它,但是这个可以:安装可以工作,但是progressbar.progressbar.update()在运行时失败。我在Ubuntu 14.04 64位上使用Python 3.4.3。@Gerhardhager抱歉,正如我在回答中所说,我没有检查实际的功能。很抱歉,它没有按预期工作。在progressbar的github上,repo说要使用
pip3安装progressbar33
我使用了pip3安装progressbar33,但当我安装autosub ValueError时,插槽中的“格式”与类变量冲突
pip install --upgrade setuptools
pip install --upgrade Distribute
python3 setup.py install