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'