
bug信息解决方案
用于解决常见的报错信息
无码不欢的我
这个作者很懒,什么都没留下…
展开
-
解决办法:jupyter notebook 无法导入自己安装的包
juyper notebook无法使用安装包的解决办法原创 2022-10-19 19:49:08 · 3343 阅读 · 2 评论 -
ninja: error: manifest ‘build.ninja‘ still dirty after 100 tries
ninja: error: manifest 'build.ninja' still dirty after 100 tries原创 2023-01-19 15:07:10 · 2008 阅读 · 3 评论 -
在一个新的虚拟环境中使用pip安装第三方库显示在另一个虚拟环境中已经存在,导致无法在新的虚拟环境中安装该第三方库
这种情况通常是由于您的系统中已经安装了需要安装的库,并且这些库被添加到了Python路径中。当您尝试在新的虚拟环境中安装相同的库时,它会检测到这些库已经存在于Python路径中,并且会给出错误提示。清除Python路径:您可以清除Python路径中的环境变量,以便在虚拟环境中安装新的库。首先,您需要找到Python路径中的环境变量。找到Python路径之后,您可以将其从环境变量中删除。原创 2023-04-09 14:15:01 · 1279 阅读 · 1 评论 -
docker cp“ requires exactly 2 arguments
假设容器名为myubuntu,要从宿主机里边拷贝的文件路径为/root/1.py,现在将1.py文件拷贝到容器的 /home路径下面,但是出现错误"docker cp" requires exactly 2 arguments.,则说明路径的格式写错了,可能是多出了一个空格此时,只需要将多余的空格去掉即可。...原创 2022-03-26 22:50:57 · 6703 阅读 · 0 评论 -
在虚拟环境中使用pip list 命令时会出现有很多没有安装过的包
这种情况通常是由于您已经在系统base环境或者其它虚拟环境中安装了需要安装的库,并且这些库被添加到了Python路径中。当你在该虚拟环境中使用pip list查看该虚拟环境中第三方包时,它会检测到这些库已经存在于Python路径中,所以导致在该虚拟环境中使用pip list 命令时会出现有很多其他没有安装过的包。清除Python路径:您可以清除Python路径中的环境变量,以便在虚拟环境中安装新的库。首先,您需要找到Python路径中的环境变量。找到Python路径之后,您可以将其从环境变量中删除。原创 2023-04-09 14:25:28 · 989 阅读 · 1 评论 -
ubuntu18.04系统无法正常连接网络解决办法
如果出现下面标志,说明ubuntu系统无法正常连接网络解决办法:第一步:第二步第三步第四步重启一下,既可以正常连接网络了原创 2022-02-12 00:00:48 · 19762 阅读 · 19 评论 -
UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use
问题描述UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum. "Argument interpolation should be of type InterpolationMode instead of int. "解决办法第一步: 导入from torchvision.transforms import原创 2022-03-05 12:56:51 · 3334 阅读 · 0 评论 -
使用gpu版的tensorflow时出现OOM错误(显存溢出错误): CUDA out of memory的解决办法。
gpu版的tensorflow 在执行过程中会默认使用全部的 GPU 内存,给系统保留 200 M,但是在我的系统上会在分配内存时被拒绝导致报错,因此我们可以使用如下语句指定 GPU 内存的分配空间:下面以我自己的电脑为例,进行相关设置。因为我的电脑的显存是6G,所以我可以设置tensorflow程序运行时所占用的显存不能超过6G,这里限制在4G大小。import tensorflow as tf#限制消耗固定大小的显存(程序不会超出限定的显存大小,若超出的报错)。physical_gpus = t原创 2022-03-15 09:39:16 · 5330 阅读 · 2 评论 -
error: command ‘C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.2\\bin\\nvcc.exe‘ failed
error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe’ failed with exit status 1我在windows10下安装detectron2(最新版maskRCNN)时,遇到了错误信息:error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe’ failed wi原创 2022-02-28 22:59:28 · 19844 阅读 · 7 评论 -
failure: repodata/repomd.xml from dockerrepo: [Errno 256] No more mirrors to try.
在 Linux 上安装和使用 Docker当执行命令yum install -y docker-engine时出现如下错误。解决方法1:1.进入/etc/yum.repos.d cd /etc/yum.repos.d2.删除相应文件,文件名称对应错误提示中的名称,如:解决方法2:1 添加 docker仓库yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo2 编辑原创 2022-03-24 16:30:43 · 5343 阅读 · 5 评论