scipy遇到的问题PermissionError: [Errno 13] in python

AttributeError: module 'scipy.sparse' has no attribute 'load_npz'

这个是版本的问题,直接更新到最新的版本

安装的时候遇到

PermissionError: [Errno 13] in python 

使用管理员模式,重启explorer.exe都不行,这个需要打开windows的任务管理器(task manager),关闭一切与 python 相关的进程,重新下载安装。

之后遇到ImportError: cannot import name 'show_config

这个需要重新安装numpy

就可以了

PS C:\Users\A\Desktop\CODE\yolO_BASE> & C:/Users/A/Anaconda3/envs/yolozyh/python.exe c:/Users/A/Desktop/CODE/yolO_BASE/xiayuanshi/read_gt.py Traceback (most recent call last): File "C:\Users\A\Anaconda3\envs\yolozyh\Lib\site-packages\scipy\io\matlab\_mio.py", line 39, in _open_file return open(file_like, mode), True ^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: './color/origin/result/add/gt/150.mat' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\Users\A\Desktop\CODE\yolO_BASE\xiayuanshi\read_gt.py", line 31, in <module> load_mat_file(file_path) File "c:\Users\A\Desktop\CODE\yolO_BASE\xiayuanshi\read_gt.py", line 6, in load_mat_file mat_contents = sio.loadmat(file_path) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\A\Anaconda3\envs\yolozyh\Lib\site-packages\scipy\io\matlab\_mio.py", line 233, in loadmat with _open_file_context(file_name, appendmat) as f: File "C:\Users\A\Anaconda3\envs\yolozyh\Lib\contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "C:\Users\A\Anaconda3\envs\yolozyh\Lib\site-packages\scipy\io\matlab\_mio.py", line 17, in _open_file_context f, opened = _open_file(file_like, appendmat, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\A\Anaconda3\envs\yolozyh\Lib\site-packages\scipy\io\matlab\_mio.py", line 45, in _open_file return open(file_like, mode), True ^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: './color/origin/result/add/gt/150.mat'
最新发布
06-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值