活动介绍
file-type

使用Conan管理C++依赖及JFrog打包教程

ZIP文件

下载需积分: 5 | 32KB | 更新于2025-02-13 | 65 浏览量 | 0 下载量 举报 收藏
download 立即下载
标题 "cpp_bootstrap" 指的是一个以 C++ 编程语言为基础的项目或框架的初始化设置过程。这个过程可能涉及到依赖管理、构建工具配置等步骤,旨在为 C++ 开发提供一个准备就绪的环境。 描述部分详细介绍了使用 Conan 包管理器来获取和管理依赖的过程。Conan 是一个开源的 C/C++ 包管理器,能够帮助开发者在项目中自动处理依赖关系和配置。下面是对描述中知识点的详细说明: 1. **通用依赖**: 在 C++ 项目中,通常会有许多依赖,例如第三方库或工具。这些依赖可能来自于不同的来源,比如开源社区、私有代码库或商业提供者。 2. **使用 Conan 获取**: Conan 允许开发者通过中央仓库(conan-center)或自定义服务器获取所需的依赖。描述中提到,有些库在 Conan 的中央仓库中不存在,因此需要从 Jfrog 这样的软件包管理平台获取。Jfrog 是一个为软件的整个生命周期提供解决方案的平台,其中包括 Artifactory 这样的制品仓库。 3. **第一次运行 Conan 的设置**: 为了能够从自定义远程服务器(在这里是 khalidzhang 的 Bintray 仓库)获取包,首先需要添加远程地址到 Conan 的配置中。命令 `conan remote add` 用于添加远程仓库,其中 "khalid" 是为该远程仓库指定的名称,而其实际的 URL 是 https://api.bintray.com/conan/puzzzzzzle1/khalidzhang。 4. **安装库**: 通过 Conan 安装特定版本的库(如 libgo/v3.1-stable 和 libco/v1.0)时,需要指定库的引用格式和远程仓库。`-r=khalid` 指明了使用之前添加的名为 "khalid" 的远程仓库。`tao/test` 和 `libco/tao` 则是用户/频道(user/channel)标识。 5. **删除 CMake 文件后的操作**: 当 CMakeLists.txt 文件被删除后,需要重新创建构建目录,运行 CMake 并使用 Conan 获取所有必需的依赖。其中 `conan install .. --build missing` 命令用于安装缺失的依赖并构建它们,`cmake ..` 是构建项目的 CMake 命令,`make` 是构建工具,用于编译项目。 标签 "C++" 指示了项目或文件是与 C++ 编程语言相关联的。C++ 是一种通用编程语言,广泛用于系统/应用软件开发、游戏开发、实时物理模拟、高性能服务器和客户端应用等。 最后提到的文件名称列表 "cpp_bootstrap-master" 表明该压缩包子文件包含了项目名称为 "cpp_bootstrap" 的主分支。通常,版本控制系统(如 Git)的分支和标签用来组织和管理项目代码的不同版本。"master" 分支是 Git 中的一个传统名称,通常指的是项目的主分支,包含了开发的主要代码线。 综上所述,这段描述了使用 Conan 和 CMake 在 C++ 项目中进行依赖管理和构建设置的流程,包括如何配置 Conan 的远程仓库,如何安装和构建特定版本的库,以及在删除了构建配置文件后重新初始化构建环境的步骤。

相关推荐

filetype

/home/kejia/Server/tf/Bin_x64/DeepLearning/DL_Lib_02/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 803: system has unsupported display driver / cuda driver combination (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0 gpu count 0 Traceback (most recent call last): File "DL_ProcessManager_01.py", line 5, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "PyInstaller/loader/pyimod03_importers.py", line 540, in exec_module File "DL_ProcessManager/__init__.py", line 1, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "PyInstaller/loader/pyimod03_importers.py", line 540, in exec_module File "DL_ProcessManager/DL_ProcessManager.py", line 12, in <module> File "/home/lxy/anaconda3/envs/mmdet2/lib/python3.7/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py", line 55, in _freeze_support File "multiprocessing/spawn.py", line 105, in spawn_main File "multiprocessing/spawn.py", line 115, in _main AttributeError: Can't get attribute 'CarmeraFunc' on <module '__main__' (built-in)> [15584] Failed to execute script DL_ProcessManager_01

filetype

error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "C:\Users\15859\.conda\envs\pytorch3d\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "C:\Users\15859\.conda\envs\pytorch3d\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\15859\.conda\envs\pytorch3d\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 137, in get_requires_for_build_wheel backend = _build_backend() ^^^^^^^^^^^^^^^^ File "C:\Users\15859\.conda\envs\pytorch3d\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 70, in _build_backend obj = import_module(mod_path) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\15859\.conda\envs\pytorch3d\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib

filetype

Collecting numpy==1.22.2 Downloading numpy-1.22.2.zip (11.4 MB) ---------------------------------------- 11.4/11.4 MB 40.6 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "E:\bangong\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "E:\bangong\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\bangong\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 137, in get_requires_for_build_wheel backend = _build_backend() ^^^^^^^^^^^^^^^^ File "E:\bangong\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 70, in _build_backend obj = import_module(mod_path) ^^^^^^^^^^^^^^^^^^^^^^^ File "E:\bangong\Python\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1381, in _gcd_import File "<frozen importlib._bootstrap>", line 1354, in _find_and_load File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1381, in _gcd_import File "<frozen importlib._bootstrap>", line 1354, in _find_and_load File "<frozen importlib._bootstrap>", lin

filetype

C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe C:\Users\Administrator\Desktop\xbx_stock_2019_完整代码\program\择时策略_回测\案例_产生策略信号.py Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pandas\compat\_optional.py", line 135, in import_optional_dependency module = importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\tables\__init__.py", line 77, in <module> from .file import File, open_file, copy_file File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\tables\file.py", line 24, in <module> import numexpr as ne File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\numexpr\__init__.py", line 24, in <module> from numexpr.interpreter import MAX_THREADS, use_vml, __BLOCK_SIZE1__ ImportError: DLL load failed while importing interpreter: 找不到指定的模块。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Administrator\Desktop\xbx_stock_2019_完整代码\program\择时策略_回测\案例_产生策略信号.py", line 89, in <module> df.to_hdf('/Users/Administrator/Desktop/xbx_stock_201

filetype

(cvnets) D:\code\ml-cvnets-main>cvnets-train --common.config-file config/segmentation/deeplabv3_mobilevitv3_small.yaml --common.results-loc deeplabv3_mobilevitv3_results/width_1_0_0 --common.override-kwargs model.classification.pretrained="LOCATION_OF_IMAGENET_1k_CHECKPOINT" NOTE: Redirects are currently not supported in Windows or MacOs. C:\Users\boardman\.conda\envs\cvnets\lib\site-packages\torchvision\models\detection\anchor_utils.py:63: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xe (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:77.) device: torch.device = torch.device("cpu"), C:\Users\boardman\.conda\envs\cvnets\lib\site-packages\torchaudio\backend\utils.py:62: UserWarning: No audio backend is available. warnings.warn("No audio backend is available.") Traceback (most recent call last): File "C:\Users\boardman\.conda\envs\cvnets\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\boardman\.conda\envs\cvnets\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\boardman\.conda\envs\cvnets\Scripts\cvnets-train.exe\__main__.py", line 7, in <module> File "D:\code\ml-cvnets-main\main_train.py", line 193, in main_worker opts = get_training_arguments(args=args) File "D:\code\ml-cvnets-main\options\opts.py", line 297, in get_training_arguments parser = modeling_arguments(parser=parser) File "D:\code\ml-cvnets-main\cvnets\__init__.py", line 23, in modeling_arguments parser = arguments_text_encoder(parser) File "D:\code\ml-cvnets-main\cvnets\text_encoders\__init__.py", line 26, in arguments_text_encoder parser = TEXT_ENCODER_REGISTRY.all_arguments(parser) File "D:\code\ml-cvnets-main\utils\registry.py", line 180, in all_arguments self._load_all() File "D:\code\ml-cvnets-main\utils\registry.py", line 97, in _load_all import_modules_from_folder(dir_name, extra_roots=self.internal_dirs) File "D:\code\ml-cvnets-main\utils\import_utils.py", line 41, in import_modules_from_folder importlib.import_module(module_name) File "C:\Users\boardman\.conda\envs\cvnets\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "D:\code\ml-cvnets-main\cvnets\text_encoders\transformer.py", line 20, in <module> from cvnets.modules import TransformerEncoder File "D:\code\ml-cvnets-main\cvnets\modules\__init__.py", line 8, in <module> from .resnet import BasicResNetBlock, BottleneckResNetBlock ModuleNotFoundError: No module named 'cvnets.modules.resnet' 请逐行解释

filetype

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 ❌ 测试失败,请检查日志获取详情

Tsy.H
  • 粉丝: 34
上传资源 快速赚钱