vimdff cannot read or write temp files

使用diffsplit比较文件时出现这个错误,解决方法是修改_vimrc文件,找到这一行:

if &sh =~ '\<cmd'

如下图,将单引号修改为双引号即可:

这里写图片描述

C:\Users\12114\anaconda3\envs\Missyao\python.exe "D:/Program Files/JetBrains/PyCharm 2023.1/plugins/python/helpers/pydev/pydevconsole.py" --mode=client --host=127.0.0.1 --port=13819 import sys; print('Python %s on %s' % (sys.version, sys.platform)) sys.path.extend(['D:\\py\\pythonProject1']) PyDev console: starting. Python 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:09:00) [MSC v.1943 64 bit (AMD64)] on win32 runfile('D:\\py\\pythonProject1\\tem相关性.py', wdir='D:\\py\\pythonProject1') Warning 3: Cannot find gdalvrt.xsd (GDAL_DATA is not defined) Traceback (most recent call last): File "rasterio\\_base.pyx", line 310, in rasterio._base.DatasetBase.__init__ File "rasterio\\_base.pyx", line 221, in rasterio._base.open_dataset File "rasterio\\_err.pyx", line 359, in rasterio._err.exc_wrap_pointer rasterio._err.CPLE_OpenFailedError: vegetation.tif: No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm 2023.1\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() ^^^^^^ File "<input>", line 1, in <module> File "D:\Program Files\JetBrains\PyCharm 2023.1\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\JetBrains\PyCharm 2023.1\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "D:\py\pythonProject1\tem相关性.py", line 46, in <module> calculate_correlation_tif( File "D:\py\pythonProject1\tem相关性.py", line 8, in calculate_correlation_tif with rasterio.open(veg_tif) as src_veg: ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\12114\anaconda3\envs\Missyao\Lib\site-packages\rasterio\env.py", line 463, in wrapper return f(*args, **kwds) ^^^^^^^^^^^^^^^^ File "C:\Users\12114\anaconda3\envs\Missyao\Lib\site-packages\rasterio\__init__.py", line 356, in open dataset = DatasetReader(path, driver=driver, sharing=sharing, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "rasterio\\_base.pyx", line 312, in rasterio._base.DatasetBase.__init__ rasterio.errors.RasterioIOError: vegetation.tif: No such file or directory
最新发布
05-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值