How to remove ^M in the file

本文介绍了如何使用sed命令处理yel.dat文件中的特殊字符'^M',这些字符是由Ctrl+V和Ctrl+M组合产生的。通过sed命令进行替换操作,可以有效地移除这些特殊字符。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


I edited  yel.dat in window, ^M appears at end of each line.

sed -e 's/^M//g' yel.dat   > new.dat
^M is an character composed by Ctrl+V and Ctrl+M

Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.polyutils failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\polyutils.py", line 26, in <module> from numpy._core.multiarray import dragon4_positional, dragon4_scientific File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.polynomial failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\polynomial.py", line 85, in <module> from numpy.lib.array_utils import normalize_axis_index File "D:\annaCONDA\Lib\site-packages\numpy\lib\array_utils.py", line 1, in <module> from ._array_utils_impl import ( # noqa: F401 File "D:\annaCONDA\Lib\site-packages\numpy\lib\_array_utils_impl.py", line 4, in <module> from numpy._core import asarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.chebyshev failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\chebyshev.py", line 112, in <module> from numpy.lib.array_utils import normalize_axis_index File "D:\annaCONDA\Lib\site-packages\numpy\lib\array_utils.py", line 1, in <module> from ._array_utils_impl import ( # noqa: F401 File "D:\annaCONDA\Lib\site-packages\numpy\lib\_array_utils_impl.py", line 4, in <module> from numpy._core import asarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.legendre failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\legendre.py", line 84, in <module> from numpy.lib.array_utils import normalize_axis_index File "D:\annaCONDA\Lib\site-packages\numpy\lib\array_utils.py", line 1, in <module> from ._array_utils_impl import ( # noqa: F401 File "D:\annaCONDA\Lib\site-packages\numpy\lib\_array_utils_impl.py", line 4, in <module> from numpy._core import asarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.hermite failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\hermite.py", line 80, in <module> from numpy.lib.array_utils import normalize_axis_index File "D:\annaCONDA\Lib\site-packages\numpy\lib\array_utils.py", line 1, in <module> from ._array_utils_impl import ( # noqa: F401 File "D:\annaCONDA\Lib\site-packages\numpy\lib\_array_utils_impl.py", line 4, in <module> from numpy._core import asarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.hermite_e failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\hermite_e.py", line 80, in <module> from numpy.lib.array_utils import normalize_axis_index File "D:\annaCONDA\Lib\site-packages\numpy\lib\array_utils.py", line 1, in <module> from ._array_utils_impl import ( # noqa: F401 File "D:\annaCONDA\Lib\site-packages\numpy\lib\_array_utils_impl.py", line 4, in <module> from numpy._core import asarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.polynomial.laguerre failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\polynomial\laguerre.py", line 80, in <module> from numpy.lib.array_utils import normalize_axis_index File "D:\annaCONDA\Lib\site-packages\numpy\lib\array_utils.py", line 1, in <module> from ._array_utils_impl import ( # noqa: F401 File "D:\annaCONDA\Lib\site-packages\numpy\lib\_array_utils_impl.py", line 4, in <module> from numpy._core import asarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.ma.core failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 455, in superreload if not append_obj(module, old_objects, name, obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 423, in append_obj in_module = hasattr(obj, "__module__") and obj.__module__ == module.__name__ ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\site-packages\numpy\core\umath.py", line 2, in __getattr__ from numpy._core import umath File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy.ma.extras failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 22, in <module> from . import multiarray File "D:\annaCONDA\Lib\site-packages\numpy\_core\multiarray.py", line 11, in <module> from . import _multiarray_umath, overrides ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\ma\extras.py", line 28, in <module> from numpy.lib._function_base_impl import _ureduce File "D:\annaCONDA\Lib\site-packages\numpy\lib\_function_base_impl.py", line 9, in <module> import numpy._core.numeric as _nx File "D:\annaCONDA\Lib\site-packages\numpy\_core\__init__.py", line 48, in <module> raise ImportError(msg) from exc ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "D:\annaCONDA\python.exe" * The NumPy version is: "2.3.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。 ] [autoreload of numpy failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\numpy\__init__.py", line 125, in <module> from numpy.__config__ import show_config ImportError: cannot import name 'show_config' from 'numpy.__config__' (D:\annaCONDA\Lib\site-packages\numpy\__config__.py) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "D:\annaCONDA\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 621, in _exec File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\annaCONDA\Lib\site-packages\numpy\__init__.py", line 130, in <module> raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. ] [autoreload of typing_extensions failed: Traceback (most recent call last): File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 365, in update_class update_instances(old, new) File "D:\annaCONDA\Lib\site-packages\IPython\extensions\autoreload.py", line 323, in update_instances object.__setattr__(ref, "__class__", new) TypeError: can't apply this __setattr__ to _ProtocolMeta object ] 开始测试数据库连接... 错误详情请查看日志文件: C:\Users\Lenovo\nepu_qa_project\db_test.log ❌ 测试失败,请检查日志获取详情
07-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值