pip安装依赖问题

问题

安装一个包,本身已经包含某依赖,在新的安装包还会重复安装

方案

方法1

手动提前安装好包对应的依赖包,然后无依赖安装该包 pip install --no-deps xxx

方法2

下载包并修改对应的依赖包版本,再安装。如:
Clone the library and change the dependency to match your version. For instance, if you have the torch version '1.13.1+cpu', change the dependency to 'torch==1.13.1+cpu'

posted @   春树&暮云  阅读(99)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示