![](https://img-blog.csdnimg.cn/20190918140037908.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
报错
遇到的各种bug
space_dandy
算法
展开
-
bad interpreter: Permission denied报错
docker运行下列命令时:docker run -it --rm -v $PWD:/build -w /build quay.io/pypa/manylinux2010_x86_64 ./build.sh报错:/usr/local/bin/manylinux-entrypoint: /build/build.sh: /bin/bash: bad interpreter: Permission denied原因权限不够,解决方法:sudo chmod -R 777 build.s原创 2022-01-13 11:37:08 · 4969 阅读 · 0 评论 -
安装docker报错:Error: Unknown command: cask
新版homebrew安装命令改变:原安装命令:brew cask install docker新安装命令:brew install --cask docker原创 2022-01-12 16:32:10 · 1137 阅读 · 0 评论 -
error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
使用Cpython编译c文件时报错:bbox.c:9439:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? *type = tstate->exc_type; ^~~~~~~~ curexc_typebbox.c:9440:22: error:原创 2020-10-10 16:07:36 · 2696 阅读 · 1 评论 -
imageio requires Python ‘>=3.5‘ but the running Python is 2.7.13
使用python2.7安装imageio时报错。这是因为当前版本的imageio仅支持python>=3.5的版本,可以选择小于小于2.6.1版本的imageio库。# imageio versions past 2.6.1 do not support <3.5 anymoreimageio<=2.6.1; python_version<'3.5'imageio; python_version>='3.5'...原创 2020-08-21 10:55:19 · 2626 阅读 · 0 评论 -
Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-fuLegg/opencv-python/
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fuLegg/opencv-python/使用python2.7安装opencv-python时报错,在https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/opencv-python/找到2.7对应版本其中下载opencv_python-3.1.0.0-cp27-cp27m-manyli.原创 2020-08-21 10:12:11 · 613 阅读 · 0 评论 -
报错 numpy.core.multiarray failed to import
解决方法:pip install --upgrade numpy原创 2020-08-13 17:08:58 · 121 阅读 · 0 评论 -
报错‘COCO‘ object has no attribute ‘get_cat_ids‘
mmdetection安装完成后,运行python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py报错。报错原因:mmdetection使用了pycocotools,原本的借口为pycocotools.coco.getCatIds,mmdetection又外包编译为get_cat_ids,导致pycocotools.coco调用成员函数失败。解决方法,重新安装COCOAPI:pip install ..原创 2020-08-13 16:10:03 · 1200 阅读 · 0 评论 -
调用flow_from_directory()出现“Found 0 images belonging to 2 classes”问题
问题描述: 使用keras的图像数据生成器(keras.preprocessing.image.ImageDataGenerator)抛出图像时出现"Found 0 images belonging to 2 classes"问题。原因:识别出两个类别,证明目标文件夹满足要求,在stackoverflow上查找原因,发现:从对应网址下载keras_preprocessing文件夹,并将...原创 2019-03-12 23:12:55 · 5915 阅读 · 3 评论