我正在尝试使用nn制作一个神经元网络项目,我认为我使用它是正确的。
当我尝试使用cargo
. 我不知道这是 Windows 问题还是什么,但我的朋友可以使用相同的操作系统完美编译。这是我在两台计算机上遇到的错误:
C:\Users\juanr_000\Desktop\red_neuronal>cargo run
Compiling time v0.1.24
failed to run custom build command for `time v0.1.24`
Process didn't exit successfully: C:\Users\juanr_000\Desktop\red_neuronal\target\debug\build\time-72cc226455b1c02b\build-script-build` (exit code: 101)
--- stdout
TARGET = Some("i686-pc-windows-gnu")
CARGO_MANIFEST_DIR = Some("C:\\Users\\juanr_000\\.cargo\\registry\\src\\github.com-1285ae84e5963aae\\time-0.1.24")
OUT_DIR = Some("C:\\Users\\juanr_000\\Desktop\\red_neuronal\\target\\debug\\build\\time-72cc226455b1c02b\\out")
TARGET = Some("i686-pc-windows-gnu")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
debug 0
TARGET = Some("i686-pc-windows-gnu")
HOST = Some("i686-pc-windows-gnu")
CC_i686-pc-windows-gnu = None
CC_i686_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("i686-pc-windows-gnu")
HOST = Some("i686-pc-windows-gnu")
CFLAGS_i686-pc-windows-gnu = None
CFLAGS_i686_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
TARGET = Some("i686-pc-windows-gnu")
HOST = Some("i686-pc-windows-gnu")
CC_i686-pc-windows-gnu = None
CC_i686_pc_windows_gnu = None
HOST_CC = None
CC = None
running: "gcc" "-O0" "-c" "-ffunction-sections" "-fdata-sections" "-mwin32" "-m32" "C:\Users\juanr_000\.cargo\registry\src\github.com-1285ae84e5963aae\time0.1.24\src/time_helpers.c" "-o" "C:\Users\juanr_000\Desktop\red_neuronal\target\debug\build\time-72cc226455b1c02b\out\src\time_helpers.o"
failed to execute command: El sistema no puede encontrar el archivo especificado
.
(os error 2)
is `gcc` not installed?
--- stderr
thread '<main>' panicked at 'explicit panic', C:\Users\juanr_000\.cargo\registry\src\github.com-1285ae84e5963aae\gcc-0.3.4\src\lib.rs:380
我更改了Cargo.toml
, 并且我认为其他软件包已正确下载和安装。这可能是 gcc 问题,但我在路径中安装了最新的 mingw。
很抱歉粘贴了“代码”,Stack Overflow 不允许我发布图片。也对不起我的英语!