Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/304.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 带pip3的Orange3安装_Python_Python 3.x_Pip_Setuptools_Orange - Fatal编程技术网

Python 带pip3的Orange3安装

Python 带pip3的Orange3安装,python,python-3.x,pip,setuptools,orange,Python,Python 3.x,Pip,Setuptools,Orange,我一直在尝试在我的Linux机器上安装orange3。审判时: pip3 install orange3 我得到这个verbos错误: WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underl

我一直在尝试在我的Linux机器上安装orange3。审判时:

pip3 install orange3
我得到这个verbos错误:

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting orange3
  Using cached Orange3-3.27.1-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB)
Collecting AnyQt>=0.0.11
  Downloading AnyQt-0.0.11-py2.py3-none-any.whl (46 kB)
Collecting baycomp>=1.0.2
  Using cached baycomp-1.0.2-py3-none-any.whl (17 kB)
Requirement already satisfied: pip>=9.0 in ./.local/lib/python3.6/site-packages (from orange3) (20.2.4)
Requirement already satisfied: scikit-learn!=0.23.0,>=0.22.0 in ./.local/lib/python3.6/site-packages (from orange3) (0.22.1)
...
Collecting orange-widget-base>=4.8.1
  Using cached orange_widget_base-4.9.0-py3-none-any.whl (229 kB)
...
Collecting python-louvain>=0.13
  Using cached python-louvain-0.14.tar.gz (19 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_us67ap2/python-louvain/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_us67ap2/python-louvain/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-t2a936sw
         cwd: /tmp/pip-install-_us67ap2/python-louvain/
    Complete output (28 lines):
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2455, in resolve
        return functools.reduce(getattr, self.attrs, module)
    AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-_us67ap2/python-louvain/setup.py", line 25, in <module>
        scripts=['bin/community']
...
        raise ImportError(str(exc)) from exc
    ImportError: type object 'Distribution' has no attribute '_finalize_feature_opts'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
警告:旧脚本包装器正在调用pip。这将在pip的未来版本中失败。
请看https://github.com/pypa/pip/issues/5599 获取有关解决潜在问题的建议。
为了避免这个问题,您可以使用“-m pip”调用Python,而不是直接运行pip。
默认为用户安装,因为普通站点包不可写
收集橙子3
使用缓存的Orange3-3.27.1-cp36-cp36m-manylinux1_x86_64.whl(2.7 MB)
收集任意qt>=0.0.11
下载AnyQt-0.0.11-py2.py3-none-any.whl(46 kB)
收集间隔补偿>=1.0.2
使用缓存的baycomp-1.0.2-py3-none-any.whl(17 kB)
已满足要求:pip>=9.0 in./.local/lib/python3.6/site-packages(来自orange3)(20.2.4)
已满足要求:scikit学习=0.23.0,>=0.22.0英寸/.local/lib/python3.6/site-packages(来自orange3)(0.22.1)
...
收集橙色小部件库>=4.8.1
使用缓存的orange_小部件_base-4.9.0-py3-none-any.whl(229KB)
...
收集数据>=0.13
使用缓存的python-louvain-0.14.tar.gz(19 kB)
错误:命令出错,退出状态为1:
命令:/usr/bin/python3-c'import sys、setuptools、tokenize;sys.argv[0]=''''/tmp/pip install-_us67ap2/python louvain/setup.py''__文件uu=''''''/tmp/pip install-_us67ap2/python louvain/setup.py''';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,uuuu文件,uuuuu,“'exec'”))'egg\u info--egg base/tmp/pip-pip-egg-info-t2a936sw
cwd:/tmp/pip安装-\u us67ap2/python louvain/
完整输出(28行):
回溯(最近一次呼叫最后一次):
文件“/usr/local/lib/python3.6/dist packages/pkg_resources/_init__.py”,第2455行,在resolve中
return functools.reduce(getattr、self.attrs、module)
AttributeError:类型对象“分发”没有属性“\u finalize\u feature\u opts”
上述异常是以下异常的直接原因:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip安装-_us67ap2/python louvain/setup.py”,第25行,在
脚本=['bin/community']
...
从exc中提出(str(exc))
ImportError:类型对象“分发”没有属性“\u finalize\u feature\u opts”
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。
我已经尝试使用更新pip以及安装工具

pip安装--升级pip


等等,但我仍然会遇到这个错误。

您可能有一个太旧版本的
setuptools
软件包。试着升级它(同时升级pip):
python3-mpip安装setuptools-pip


这里有一个setuptools问题的链接,描述了这个问题:

看起来实际上是
python louvain
包失败了。如果您自行安装该软件包,会发生什么情况?另外,你能在一个新的虚拟电视中复制这个吗
python3-m venv测试环境和源代码测试环境/bin/activate&&python3-m pip安装orange3
查看我链接到的问题,orange3的要求包括
setuptools
本身也可能是一个问题: