
python运行问题
BC_COM
这个作者很懒,什么都没留下…
展开
-
解决错误: module enum has no attribute IntFlag
错误:AttributeError: module 'enum' has no attribute 'IntFlag'最近在给python程序打包,需要用到pyinstaller 包,安装好之后在给程序打包的时候出现错误,虽然程序已经打包,但是打包好的程序并不能够正确执行!!!一、错误原因错误如下:这是因为您enum不是标准的库enum模块。您可能已enum34安装该软件包。二、解决错误方法从python 3.6开始,enum34库不再与标准库兼容。该库也是不必要的,因此您只需卸载原创 2020-06-07 02:18:27 · 2168 阅读 · 0 评论 -
各版本Pytorch安装详解--亲测有效
各版本Pytorch安装详解–亲测有效windows版本conda安装1.cuda9.0 python3.6/3.5/3.7conda install pytorch -c pytorchpip3 install torchvision2.cuda8.0 python3.6/3.5/3.7conda install pytorch cuda80 -c pytorchpip3 in...原创 2020-03-28 17:48:32 · 2924 阅读 · 0 评论 -
大佬教你很容易就解决“ValueError: not enough values to unpack (expected 3, got 2)”问题
解决“ValueError: not enough values to unpack (expected 3, got 2)”问题问题描述在import cv2包调用findContours函数时`binary,contours,hierarchy=cv2.findContours(thresh.copy(),cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPL...原创 2020-03-26 15:56:09 · 2414 阅读 · 2 评论 -
基于opencv--AttributeError: module 'cv2.cv2' has no attribute 'face' 模块'cv2.cv2'没有属性'face'
该face模块实际上并不是opencv图书馆的一部分。更确切地说,face是部分的的opencv-contrib库。从自述文件:此存储库[ opencv-contrib]用于开发所谓的“额外”模块,提供功能。新模块通常没有稳定的API,并且它们没有经过良好测试。因此,它们不应作为官方OpenCV发行版的一部分发布,因为该库保持二进制兼容性,并试图提供良好的性能和稳定性。opencv-con...原创 2020-03-13 00:29:13 · 1400 阅读 · 5 评论 -
很容易pip install -r requirements.txt 执行命令时报错的解决办法
报错内容: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'方法一:安装python-3.6.4-amd64然后在环境变量里配置 pip的路径例如 ;E:\software\python-3.6.4-amd64\Scripts然后...原创 2020-02-19 15:48:34 · 21693 阅读 · 5 评论