some collected macros for C++

博客主要展示了一系列C++宏定义,包括数组大小计算、字符串宽化、文件和函数名处理等,还根据是否为Unicode进行不同定义,最后定义了路径长度常量。
#define ARRAY_SIZE(X) sizeof(X)/sizeof(X[0]) #define WIDEN2(x) L ## x #define WIDEN(x) WIDEN2(x) #define __WFILE__ WIDEN(__FILE__) #define __WFUNCTION__ WIDEN(__FUNCTION__) #ifdef _UNICODE #define __TFILE__ __WFILE__ #define __TFUNCTION__ __WFUNCTION__ #else #define __TFILE__ __FILE__ #define __TFUNCTION__ __FUNCTION__ #endif #define __STR2__(x) #x #define __STR1__(x) __STR2__(x) //#define __LOC__ __FILE__ "("__STR1__(__LINE__)") : Warning Msg: " #define __LOC2__ __FILE__ "("__STR1__(__LINE__)") " #define __FLOC__ __TFILE__ "("__STR1__(__LINE__)"): " #define __MLOC__ __TFUNCTION__ "("__STR1__(__LINE__)"): " const int PATH_LEN = 1024+MAX_PATH;
Building wheels for collected packages: pydantic-core Building wheel for pydantic-core (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pydantic-core (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [101 lines of output] Running `maturin pep517 build-wheel -i C:\Users\Admin\Documents\Repositoris\PycharmProjects\PythonProject\.venv\Scripts\python.exe --compatibility off` 馃摝 Including license file `LICENSE` 馃嵐 Building a mixed python/rust project 馃敆 Found pyo3 bindings 馃悕 Found CPython 3.13 at C:\Users\Admin\Documents\Repositoris\PycharmProjects\PythonProject\.venv\Scripts\python.exe 馃摗 Using build options features, bindings from pyproject.toml Compiling autocfg v1.1.0 Compiling target-lexicon v0.12.9 Compiling cc v1.0.79 Compiling proc-macro2 v1.0.76 Compiling once_cell v1.18.0 Compiling unicode-ident v1.0.10 Compiling heck v0.4.1 Compiling windows_x86_64_msvc v0.48.0 Compiling cfg-if v1.0.0 Compiling version_check v0.9.4 Compiling rustversion v1.0.13 Compiling libc v0.2.147 Compiling parking_lot_core v0.9.8 Compiling portable-atomic v1.6.0 Compiling smallvec v1.13.2 Compiling scopeguard v1.1.0 Compiling static_assertions v1.1.0 Compiling radium v0.7.0 Compiling tinyvec_macros v0.1.1 Compiling tap v1.0.1 Compiling memchr v2.6.3 Compiling lexical-util v0.8.5 Compiling tinyvec v1.6.0 Compiling serde v1.0.203 Compiling wyz v0.5.1 Compiling getrandom v0.2.10 Compiling zerocopy v0.7.32 Compiling regex-syntax v0.8.2 Compiling indoc v2.0.4 Compiling num-traits v0.2.16 Compiling num-integer v0.1.45 Compiling lock_api v0.4.10 Compiling num-bigint v0.4.4 Compiling memoffset v0.9.0 Compiling python3-dll-a v0.2.9 Compiling ahash v0.8.10 Compiling unicode-normalization v0.1.22 Compiling lexical-parse-integer v0.8.6 Compiling aho-corasick v1.0.2 Compiling hashbrown v0.14.3 Compiling serde_json v1.0.116 Compiling percent-encoding v2.3.1 Compiling unindent v0.2.3 Compiling windows-targets v0.48.1 Compiling unicode-bidi v0.3.13 Compiling equivalent v1.0.1 Compiling quote v1.0.35 Compiling funty v2.0.0 Compiling regex-automata v0.4.5 Compiling lexical-parse-float v0.8.5 Compiling ryu v1.0.14 Compiling pyo3-build-config v0.21.2 Compiling itoa v1.0.8 Compiling base64 v0.21.7 Compiling uuid v1.8.0 Compiling indexmap v2.2.2 Compiling form_urlencoded v1.2.1 Compiling syn v2.0.48 Compiling parking_lot v0.12.1 Compiling idna v0.5.0 Compiling bitvec v1.0.1 Compiling url v2.5.0 Compiling regex v1.10.4 Compiling pyo3-macros-backend v0.21.2 Compiling serde_derive v1.0.203 Compiling strum_macros v0.25.3 Compiling enum_dispatch v0.3.13 Compiling strum_macros v0.26.1 Compiling pyo3-ffi v0.21.2 Compiling pyo3 v0.21.2 Compiling jiter v0.4.1 Compiling pydantic-core v2.18.4 (C:\Users\Admin\AppData\Local\Temp\pip-install-i8pjr3_h\pydantic-core_c4a0cfe4ebb34ab78f737f2febf1fc9c) Compiling strum v0.25.0 Compiling pyo3-macros v0.21.2 error: failed to run custom build command for `pyo3-ffi v0.21.2` Caused by: process didn't exit successfully: `C:\Users\Admin\AppData\Local\Temp\pip-install-i8pjr3_h\pydantic-core_c4a0cfe4ebb34ab78f737f2febf1fc9c\target\release\build\pyo3-ffi-d93da7a562185f82\build-script-build` (exit code: 1) --- stdout cargo:rerun-if-env-changed=PYO3_CROSS cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY --- stderr error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12) = help: please check if an updated version of PyO3 is available. Current version: 0.21.2 = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI warning: build failed, waiting for other jobs to finish... 馃挜 maturin failed Caused by: Failed to build a native library through cargo Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-i8pjr3_h\\pydantic-core_c4a0cfe4ebb34ab78f737f2febf1fc9c\\Cargo.toml" "--release" "--lib" "--crate-type" "cdylib"` Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Users\\Admin\\Documents\\Repositoris\\PycharmProjects\\PythonProject\\.venv\\Scripts\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pydantic-core Failed to build pydantic-core error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> pydantic-core
09-30
PS D:\gaussian-splatting> pip install submodules\diff-gaussian-rasterization Processing d:\gaussian-splatting\submodules\diff-gaussian-rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff-gaussian-rasterization DEPRECATION: Building 'diff-gaussian-rasterization' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'diff-gaussian-rasterization'. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [79 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8' running bdist_wheel D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py:499: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-3.11 creating build\lib.win-amd64-3.11\diff_gaussian_rasterization copying diff_gaussian_rasterization\__init__.py -> build\lib.win-amd64-3.11\diff_gaussian_rasterization running build_ext D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py:384: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'diff_gaussian_rasterization._C' extension creating build\temp.win-amd64-3.11 creating build\temp.win-amd64-3.11\Release creating build\temp.win-amd64-3.11\Release\cuda_rasterizer D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn( Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "D:\gaussian-splatting\submodules\diff-gaussian-rasterization\setup.py", line 17, in <module> setup( File "D:\anaconda\Lib\site-packages\setuptools\__init__.py", line 155, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands dist.run_commands() File "D:\anaconda\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands self.run_command(cmd) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command cmd_obj.run() File "D:\anaconda\Lib\site-packages\wheel\_bdist_wheel.py", line 387, in run self.run_command("build") File "D:\anaconda\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command cmd_obj.run() File "D:\anaconda\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command cmd_obj.run() File "D:\anaconda\Lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run self.build_extensions() File "D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py", line 870, in build_extensions build_ext.build_extensions(self) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "D:\anaconda\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "D:\anaconda\Lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension _build_ext.build_extension(self, ext) File "D:\anaconda\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension objects = self.compiler.compile(sources, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py", line 765, in win_wrap_single_compile return original_compile(sources, output_dir, macros, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 405, in compile self.spawn(args) File "D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py", line 746, in spawn cflags = win_cuda_flags(cflags) + ['-std=c++17', '--use-local-env'] ^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py", line 700, in win_cuda_flags cflags + _get_cuda_arch_flags(cflags)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py", line 1987, in _get_cuda_arch_flags arch_list[-1] += '+PTX' ~~~~~~~~~^^^^ IndexError: list index out of range [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> diff-gaussian-rasterization
09-14
(yanzhan) C:\Users\Administrator\Desktop\pythoncode\a-yanzhan\ConSinGAN-master>pip install -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting absl-py==0.9.0 (from -r requirements.txt (line 1)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1a/53/9243c600e047bd4c3df9e69cfabc1e8004a82cac2e0c484580a78a94ba2a/absl-py-0.9.0.tar.gz (104 kB) Preparing metadata (setup.py) ... done Collecting albumentations==0.4.3 (from -r requirements.txt (line 2)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f6/c4/a1e6ac237b5a27874b01900987d902fe83cc469ebdb09eb72a68c4329e78/albumentations-0.4.3.tar.gz (3.2 MB) Preparing metadata (setup.py) ... done Collecting cachetools==4.0.0 (from -r requirements.txt (line 3)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/08/6a/abf83cb951617793fd49c98cb9456860f5df66ff89883c8660aa0672d425/cachetools-4.0.0-py3-none-any.whl (10 kB) Collecting certifi==2019.11.28 (from -r requirements.txt (line 4)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156 kB) Collecting chardet==3.0.4 (from -r requirements.txt (line 5)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting cycler==0.10.0 (from -r requirements.txt (line 6)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Collecting decorator==4.4.2 (from -r requirements.txt (line 7)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl (9.2 kB) Collecting future==0.18.2 (from -r requirements.txt (line 8)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829 kB) Preparing metadata (setup.py) ... done Collecting google-auth==1.11.3 (from -r requirements.txt (line 9)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/f8/2da482a6165ef3f28d52faf8c2ca31628129a84a294033eb399ef500e265/google_auth-1.11.3-py2.py3-none-any.whl (76 kB) Collecting google-auth-oauthlib==0.4.1 (from -r requirements.txt (line 10)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/b8/88def36e74bee9fce511c9519571f4e485e890093ab7442284f4ffaef60b/google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB) Collecting grpcio==1.27.2 (from -r requirements.txt (line 11)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/74/52/9204d08bf37ac2505ebab2fa93b808fac87564580d7cc839db2fe11c3bdd/grpcio-1.27.2.tar.gz (16.9 MB) Preparing metadata (setup.py) ... done Collecting idna==2.9 (from -r requirements.txt (line 12)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58 kB) Collecting imageio==2.8.0 (from -r requirements.txt (line 13)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4c/2b/9dd19644f871b10f7e32eb2dbd6b45149c350b4d5f2893e091b882e03ab7/imageio-2.8.0-py3-none-any.whl (3.3 MB) Collecting imgaug==0.2.6 (from -r requirements.txt (line 14)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ad/2e/748dbb7bb52ec8667098bae9b585f448569ae520031932687761165419a2/imgaug-0.2.6.tar.gz (631 kB) Preparing metadata (setup.py) ... done Collecting joblib==0.14.1 (from -r requirements.txt (line 15)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/28/5c/cf6a2b65a321c4a209efcdf64c2689efae2cb62661f8f6f4bb28547cf1bf/joblib-0.14.1-py2.py3-none-any.whl (294 kB) Collecting kiwisolver==1.1.0 (from -r requirements.txt (line 16)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/16/e7/df58eb8868d183223692d2a62529a594f6414964a3ae93548467b146a24d/kiwisolver-1.1.0.tar.gz (30 kB) Preparing metadata (setup.py) ... done Collecting Markdown==3.2.1 (from -r requirements.txt (line 17)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ab/c4/ba46d44855e6eb1770a12edace5a165a0c6de13349f592b9036257f3c3d3/Markdown-3.2.1-py2.py3-none-any.whl (88 kB) Collecting matplotlib==3.3.4 (from -r requirements.txt (line 19)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c6/a9/34b140f09ec6c8b14ef98ae9a0c8014ee0e575b688a672815e569cfc9253/matplotlib-3.3.4-cp39-cp39-win32.whl (8.3 MB) Collecting networkx==2.4 (from -r requirements.txt (line 20)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/41/8f/dd6a8e85946def36e4f2c69c84219af0fa5e832b018c970e92f2ad337e45/networkx-2.4-py3-none-any.whl (1.6 MB) Collecting numpy==1.15.2 (from -r requirements.txt (line 21)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/45/ba/2a781ebbb0cd7962cc1d12a6b65bd4eff57ffda449fdbbae4726dc05fbc3/numpy-1.15.2.zip (4.5 MB) Preparing metadata (setup.py) ... done Collecting oauthlib==3.1.0 (from -r requirements.txt (line 22)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/05/57/ce2e7a8fa7c0afb54a0581b14a65b56e62b5759dbc98e80627142b8a3704/oauthlib-3.1.0-py2.py3-none-any.whl (147 kB) Collecting opencv-python==4.3.0.38 (from -r requirements.txt (line 25)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0 MB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [357 lines of output] Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Ignoring numpy: markers 'python_version == "3.5"' don't match your environment Ignoring numpy: markers 'python_version == "3.6"' don't match your environment Ignoring numpy: markers 'python_version == "3.7"' don't match your environment Collecting setuptools Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl (1.2 MB) Collecting wheel Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl (72 kB) Collecting scikit-build Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c3/a3/21b519f58de90d684056c52ec4e45f744cfda7483f082dcc4dd18cc74a93/scikit_build-0.18.1-py3-none-any.whl (85 kB) Collecting cmake Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b0/98/768e4b298a5a53cd305f7aadae2cc825f00ec70a3b1b98d822c7feacb50b/cmake-4.1.0-py3-none-win32.whl (34.3 MB) Collecting pip Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/3f/945ef7ab14dc4f9d7f40288d2df998d1837ee0888ec3659c813487572faa/pip-25.2-py3-none-any.whl (1.8 MB) Collecting numpy==1.17.3 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip (6.4 MB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting distro (from scikit-build) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl (20 kB) Collecting packaging (from scikit-build) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl (66 kB) Collecting tomli (from scikit-build) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl (14 kB) Building wheels for collected packages: numpy DEPRECATION: Building 'numpy' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'numpy'. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for numpy (setup.py): started Building wheel for numpy (setup.py): finished with status 'error' error: subprocess-exited-with-error python setup.py bdist_wheel did not run successfully. exit code: 1 [292 lines of output] Running from numpy source directory. blas_opt_info: blas_mkl_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries mkl_rt not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE blis_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries blis not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE openblas_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries openblas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']' customize GnuFCompiler Could not locate executable g77 Could not locate executable f77 customize IntelVisualFCompiler Could not locate executable ifort Could not locate executable ifl customize AbsoftFCompiler Could not locate executable f90 customize CompaqVisualFCompiler Could not locate executable DF customize IntelItaniumVisualFCompiler Could not locate executable efl customize Gnu95FCompiler Could not locate executable gfortran Could not locate executable f95 customize G95FCompiler Could not locate executable g95 customize IntelEM64VisualFCompiler customize IntelEM64TFCompiler Could not locate executable efort Could not locate executable efc customize PGroupFlangCompiler Could not locate executable flang don't know how to compile Fortran code on platform 'nt' NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries tatlas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE atlas_3_10_blas_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries satlas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries ptf77blas,ptcblas,atlas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE atlas_blas_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries f77blas,cblas,atlas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE accelerate_info: NOT AVAILABLE C:\Users\Administrator\AppData\Local\Temp\pip-install-35_5mcrj\numpy_52c9ee94b9d2467da2c70e01a59876ad\numpy\distutils\system_info.py:690: UserWarning: Optimized (vendor) Blas libraries are not found. Falls back to netlib Blas library which has worse performance. A better performance should be easily gained by switching Blas library. self.calc_info() blas_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries blas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE C:\Users\Administrator\AppData\Local\Temp\pip-install-35_5mcrj\numpy_52c9ee94b9d2467da2c70e01a59876ad\numpy\distutils\system_info.py:690: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. self.calc_info() blas_src_info: NOT AVAILABLE C:\Users\Administrator\AppData\Local\Temp\pip-install-35_5mcrj\numpy_52c9ee94b9d2467da2c70e01a59876ad\numpy\distutils\system_info.py:690: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. self.calc_info() NOT AVAILABLE 'svnversion' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 non-existing path in 'numpy\\distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries mkl_rt not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE openblas_lapack_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries openblas not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE openblas_clapack_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries openblas,lapack not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE flame_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries flame not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries tatlas,tatlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries tatlas,tatlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries tatlas,tatlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\Library\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries tatlas,tatlas not found in E:\Anaconda3\Library\lib <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> NOT AVAILABLE atlas_3_10_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries satlas,satlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries satlas,satlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries satlas,satlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\Library\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries satlas,satlas not found in E:\Anaconda3\Library\lib <class 'numpy.distutils.system_info.atlas_3_10_info'> NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries ptf77blas,ptcblas,atlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries ptf77blas,ptcblas,atlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries ptf77blas,ptcblas,atlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\Library\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries ptf77blas,ptcblas,atlas not found in E:\Anaconda3\Library\lib <class 'numpy.distutils.system_info.atlas_threads_info'> NOT AVAILABLE atlas_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries f77blas,cblas,atlas not found in E:\Anaconda3\envs\yanzhan\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries f77blas,cblas,atlas not found in C:\ No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries f77blas,cblas,atlas not found in E:\Anaconda3\envs\yanzhan\libs No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack_atlas not found in E:\Anaconda3\Library\lib No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries f77blas,cblas,atlas not found in E:\Anaconda3\Library\lib <class 'numpy.distutils.system_info.atlas_info'> NOT AVAILABLE lapack_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries lapack not found in ['E:\\Anaconda3\\envs\\yanzhan\\lib', 'C:\\', 'E:\\Anaconda3\\envs\\yanzhan\\libs', 'E:\\Anaconda3\\Library\\lib'] NOT AVAILABLE C:\Users\Administrator\AppData\Local\Temp\pip-install-35_5mcrj\numpy_52c9ee94b9d2467da2c70e01a59876ad\numpy\distutils\system_info.py:1712: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. if getattr(self, '_calc_info_{}'.format(lapack))(): lapack_src_info: NOT AVAILABLE C:\Users\Administrator\AppData\Local\Temp\pip-install-35_5mcrj\numpy_52c9ee94b9d2467da2c70e01a59876ad\numpy\distutils\system_info.py:1712: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. if getattr(self, '_calc_info_{}'.format(lapack))(): NOT AVAILABLE E:\Anaconda3\envs\yanzhan\lib\site-packages\setuptools\_distutils\dist.py:275: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build creating build\src.win32-3.9 creating build\src.win32-3.9\numpy creating build\src.win32-3.9\numpy\distutils building library "npymath" sources No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for numpy Running setup.py clean for numpy error: subprocess-exited-with-error python setup.py clean did not run successfully. exit code: 1 [10 lines of output] Running from numpy source directory. `setup.py clean` is not supported, use one of the following instead: - `git clean -xdf` (cleans all files) - `git clean -Xdf` (cleans all versioned files, doesn't touch files that aren't checked into the git repo) Add `--force` to your command to use it anyway if you must (unsupported). [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed cleaning build dir for numpy Failed to build numpy error: failed-wheel-build-for-install Failed to build installable wheels for some pyproject.toml based projects numpy [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. 怎么解决
09-14
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值