我是生锈的新手,制作了一个简单的生锈程序(hello world)。我从这里安装rust和Visual Studio- https://visualstudio.microsoft.com/downloads/并重新启动设备。但是,当我在rustc <path>命令提示符下键入时,我得到:
error: linker `link.exe` not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015 or VS 2017 was installed with the Visual C++ option
error: aborting due to previous error
Run Code Online (Sandbox Code Playgroud)
怎么了?
更新资料
我将系统路径更新为include C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64,但是现在出现此错误:
error: linking with `link.exe` failed: exit code: …Run Code Online (Sandbox Code Playgroud) 我已经在 python 2.7 中安装了 requests 模块,但是在导入它时给了我
import-im6.q16: not authorized `requests' @ error/constitute.c/WriteImage/1037
Run Code Online (Sandbox Code Playgroud)
这是为什么?