安装依赖包
在虚拟环境模式下,输入如下的命令开始安装依赖包:
pip install -r requirements.txt
这个过程会比较漫长,你需要耐心等待,如果中途有报错,可以重新进入虚拟环境重新运行安装依赖包的命令!
我在运行该步骤的时候出现了下面的报错,可能你也会遇到:
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10 ERROR: Could not find a version that satisfies the requirement tb-nightly (from gfpgan) (from versions: none) ERROR: No matching distribution found for tb-nightly [notice] A new release of pip available: 22.3.1 -> 23.2.1 [notice] To update, run: python.exe -m pip install --upgrade pip
这里其实是两个问题,一个是没有找到tb-nightly模块,一个是pip需要升级,pip的问题比较简单,你在该窗口(虚拟环境模式中)直接运行下面的升级命令即可解决!
python.exe -m pip install --upgrade pip
第一个问题的解决方法是在该窗口(虚拟环境模式中)运行如下的命令:
pip install -i https://mirrors.aliyun.com/pypi/simple/ tb-nightly
安装tb-nightly需要花点时间,取决于你的网络情况!
安装tb-nightly完成之后,就可以重新运行pip install -r requirements.txt命令来安装依赖包了!
这次就没有再出现报错的情况了!出现下面的字样表示依赖包已经安装完成了!
如果是因为本地缓存有冲突,导致安装依赖包失败,可以执行如下的命令进行安装:
pip install --no-cache-dir -r requirements.txt
原创文章,作者:朋远方,如若转载,请注明出处:https://caovan.com/roopyijianhuanlianwindowsbendedajianjiaocheng/.html
评论列表(1条)
这个本机cuda版本是12.2 但是在cuda环境里安装了 cudatoolkit 11.8 但是 tensorflow 2.13.0 无法识别到显卡,这种是怎么个情况呢?不过是Linux的系统