首页 > 其他分享 >dependency

dependency

时间:2024-12-05 16:09:59浏览次数:8  
标签:incompatible requires torch but dependency packages numpy

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
onnxruntime 1.13.1 requires numpy>=1.21.6, but you have numpy 1.19.5 which is incompatible.
pytorch-lightning 1.7.7 requires torch>=1.9.*, but you have torch 1.8.1 which is incompatible.
tensorflow 1.15.5 requires numpy<1.19.0,>=1.16.0, but you have numpy 1.19.5 which is incompatible.
tensorflow 1.15.5 requires tensorboard<1.16.0,>=1.15.0, but you have tensorboard 2.11.0 which is incompatible.
torchaudio 0.11.0+cpu requires torch==1.11.0, but you have torch 1.8.1 which is incompatible.
torchvision 0.12.0+cpu requires torch==1.11.0, but you have torch 1.8.1 which is incompatible.
xtcocotools 1.12 requires numpy>=1.20.0; python_version >= "3.7", but you have numpy 1.19.5 which is incompatible.
Successfully installed numpy-1.19.5

 



DEPRECATION: pytorch-lightning 1.7.7 has a non-standard dependency specifier torch>=1.9.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: numpy, xedu-python
  Attempting uninstall: numpy
    Found existing installation: numpy 1.18.5
    Uninstalling numpy-1.18.5:
      Successfully uninstalled numpy-1.18.5
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pytorch-lightning 1.7.7 requires torch>=1.9.*, but you have torch 1.8.1 which is incompatible.
tensorflow 1.15.5 requires numpy<1.19.0,>=1.16.0, but you have numpy 1.21.6 which is incompatible.
tensorflow 1.15.5 requires tensorboard<1.16.0,>=1.15.0, but you have tensorboard 2.11.0 which is incompatible.
torchaudio 0.11.0+cpu requires torch==1.11.0, but you have torch 1.8.1 which is incompatible.
torchvision 0.12.0+cpu requires torch==1.11.0, but you have torch 1.8.1 which is incompatible.
Successfully installed numpy-1.21.6 xedu-python-0.2.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
 

 

 

 

 
Installing collected packages: torch
  Attempting uninstall: torch
    Found existing installation: torch 1.8.1
    Uninstalling torch-1.8.1:
      Successfully uninstalled torch-1.8.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
mmedu 0.1.28 requires mmcls==0.20.0, but you have mmcls 0.24.1 which is incompatible.
mmedu 0.1.28 requires mmcv-full==1.4.5, but you have mmcv-full 1.7.0 which is incompatible.
mmedu 0.1.28 requires mmdet==2.23.0, but you have mmdet 2.25.3 which is incompatible.
mmedu 0.1.28 requires torch==1.8.1, but you have torch 1.9.0 which is incompatible.
mmedu 0.1.28 requires torchvision==0.9.1, but you have torchvision 0.12.0+cpu which is incompatible.
torchaudio 0.11.0+cpu requires torch==1.11.0, but you have torch 1.9.0 which is incompatible.
torchvision 0.12.0+cpu requires torch==1.11.0, but you have torch 1.9.0 which is incompatible.
Successfully installed torch-1.9.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Note: you may need to restart the kernel to use updated packages.

  File "/tmp/ipykernel_16173/574268934.py", line 1
    python -m venv myenv
                 ^
SyntaxError: invalid syntax

 

Looking in indexes: https://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting torch==1.11.0
  Downloading https://mirrors.cloud.aliyuncs.com/pypi/packages/94/32/96a0955e5d6ed8a837eda5ca095dd2694c4617cfa70ca599660cd5ff7447/torch-1.11.0-cp37-cp37m-manylinux1_x86_64.whl (750.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━ 591.6/750.6 MB 9.3 MB/s eta 0:00:18

Looking in indexes: https://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting torch==1.11.0
  Downloading https://mirrors.cloud.aliyuncs.com/pypi/packages/94/32/96a0955e5d6ed8a837eda5ca095dd2694c4617cfa70ca599660cd5ff7447/torch-1.11.0-cp37-cp37m-manylinux1_x86_64.whl (750.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 750.6/750.6 MB 3.0 MB/s eta 0:00:0000:0100:03
Requirement already satisfied: torchaudio==0.11.0+cpu in /opt/conda/lib/python3.7/site-packages (0.11.0+cpu)
Requirement already satisfied: torchvision==0.12.0+cpu in /opt/conda/lib/python3.7/site-packages (0.12.0+cpu)
Requirement already satisfied: typing-extensions in /opt/conda/lib/python3.7/site-packages (from torch==1.11.0) (4.1.1)
Requirement already satisfied: numpy in /opt/conda/lib/python3.7/site-packages (from torchvision==0.12.0+cpu) (1.19.5)
Requirement already satisfied: requests in /opt/conda/lib/python3.7/site-packages (from torchvision==0.12.0+cpu) (2.27.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /opt/conda/lib/python3.7/site-packages (from torchvision==0.12.0+cpu) (9.3.0)
ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: '/opt/conda/lib/python3.7/site-packages/numpy-1.19.5.dist-info/METADATA'

Note: you may need to restart the kernel to use updated packages.

Looking in indexes: https://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting numpy==1.19.5
  Using cached https://mirrors.cloud.aliyuncs.com/pypi/packages/08/d6/a6aaa29fea945bc6c61d11f6e0697b325ff7446de5ffd62c2fa02f627048/numpy-1.19.5-cp37-cp37m-manylinux2010_x86_64.whl (14.8 MB)
DEPRECATION: omegaconf 2.0.6 has a non-standard dependency specifier PyYAML>=5.1.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: pytorch-lightning 1.7.7 has a non-standard dependency specifier torch>=1.9.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.21.6
    Uninstalling numpy-1.21.6:
      Successfully uninstalled numpy-1.21.6
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
onnxruntime 1.13.1 requires numpy>=1.21.6, but you have numpy 1.19.5 which is incompatible.
tensorflow 1.15.5 requires numpy<1.19.0,>=1.16.0, but you have numpy 1.19.5 which is incompatible.
tensorflow 1.15.5 requires tensorboard<1.16.0,>=1.15.0, but you have tensorboard 2.11.0 which is incompatible.
torchvision 0.12.0+cpu requires torch==1.11.0, but you have torch 1.9.0 which is incompatible.
xtcocotools 1.12 requires numpy>=1.20.0; python_version >= "3.7", but you have numpy 1.19.5 which is incompatible.
Successfully installed numpy-1.19.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Note: you may need to restart the kernel to use updated packages.























标签:incompatible,requires,torch,but,dependency,packages,numpy
From: https://www.cnblogs.com/flyingsir/p/18588811

相关文章

  • C# 启用数据库通知刷新(SqlDependency)
    ‌SqlDependency‌是一种功能,用于在数据库中的数据发生变化时自动触发事件,通知应用程序更新数据或缓存。它适用于ASP.NET和ASP.NETCore应用程序,特别是在需要实时响应数据变化的场景中非常有用。使用方法1‌.启用数据库的通知服务‌:首先需要在数据库中启用通知服务。对于SQLS......
  • WPF开发用户控件、用户控件属性依赖DependencyProperty实现双向绑定、以及自定义实现C
    1、新建了一个用户控件,里面画了一个实心圆,以及一个文本控件的组合,当作我要实验使用的用户控件(TestUserControl)。 2、在主窗体里面进行引用,可以看到引用以后,会在工具箱上显示新增的用户控件3、为了测试方便,我直接在先前的Lo'gin页面直接进行添加该用户控件,效果如下。 4、......
  • 自动化测试 | 安装selenium教程以及(ERROR: pip‘s dependency resolver does not cur
    1.在cmd里面安装selenium输入:pipinstallselenium在我这里出现了下载缓慢的问题,一直卡了半天,有同样问题的小伙伴可以试试输入下面这个进行安装,会更快一点:pip--default-timeout=100installselenium-ihttps://pypi.tuna.tsinghua.edu.cn/simple之后仍然出现了:ERRO......
  • 【编程底层思考】理解控制反转Inverse of Control,IOC 和 依赖注入Dependency Injecti
    RodJohnson是第一个高度重视以配置文件来管理Java实例的协作关系的人,他给这种方式起了一个名字:控制反转(InverseofControl,IOC)。后来MartineFowler为这种方式起了另一个名称:依赖注入(DependencyInjection),因此不管是依赖注入,还是控制反转,其含义完全相同。当某个Java对象(......
  • Dependency-Checkc操作手册V1.0(互联网及内网使用)
                  Dependency-Check操作手册二〇二四年八月Dependency-Check操作手册拟制:___________________   日期:___________________校对:___________________   日期:___________________审核:_________......
  • maven dependencyManagement
    1.简介:本文介绍maven的dependencyManagement的用法。2.使用场景:dependencyManagement只声明依赖,但不引入依赖。一般定义在父pom中,这样子pom项目引入依赖时,不必指定版本号。比如SpringBoot就使用了dependencyManagement,它对里面的包进行了与SpringBoot对应版本的兼容性测试......
  • 解决安装iperf 出现错误cannot find dependency uclibcxx for iperf
    iperf是一个常用免费的网络性能测试工具。iperf可以测试最大TCP和UDP带宽性能,具有多种参数和UDP特性,可以根据需要调整,可以报告带宽、延迟抖动和数据包丢失。在openwrt安装时通常会遇到下面问题 原因如提示所描述没有uclibcxx依赖库。制作ipk依赖包然后安装上。提示安装完成。......
  • Dependency Injection: 如何解决依赖注入失败问题
    DependencyInjection:如何解决依赖注入失败问题......
  • .net core 依赖注入 DependencyInjection
    .netcore依赖注入源码位于.netcore的runtime源码中,其他源码信息 .netcore独立模块源码:https://github.com/aspnet.netcore全家桶源码:https://github.com/dotnet/aspnetcore.netcore拓展库源码:https://github.com/dotnet/extensions.netcore标准库源码:https://github......
  • springboot+vue前后端分离项目:导出功能报错Request processing failed: cn.hutool.cor
    1.报错截图: 2.hutool官网,推荐引入poi-ooxml依赖 3.mvn仓库找到依赖 4.用最新版依赖 5.复制到本项目pom.xml,刷新maven 解决......