用Anaconda Prompt安装pytroch时报错“此时不应有\Microsoft”
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用Anaconda Prompt安装pytroch时报错“此时不应有\Microsoft”相关的知识,希望对你有一定的参考价值。
输入所有的conda命令都会报错:此时不应有 \Microsoft。(base) C:\Users\Lenovo>@for %B in (D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\condabin\.) do @set PATH=%~dpB;%~dpBLibrary\mingw-w64\bin;%~dpBLibrary\usr\bin;%~dpBLibrary\bin;%~dpBScripts;%~dpBbin;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\Library\mingw-w64\bin;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\Library\usr\bin;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\Library\bin;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\Scripts;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\bin;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\condabin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;C:\Program Files\Microsoft MPI\Bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\Lenovo\AppData\Local\Microsoft\WindowsApps;D:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\Scripts;各位大神求救!
参考技术A 9 作者考证Anaconda Prompt运行.py文件的方法
- 切换到目标 xxx.py 所在文件夹路径:cd /d xxx
- 运行脚本:python xxx.py
以上是关于用Anaconda Prompt安装pytroch时报错“此时不应有\Microsoft”的主要内容,如果未能解决你的问题,请参考以下文章
Anaconda Prompt (Anaconda3)安装pandas和matplotlib依赖库
Anaconda Prompt (Anaconda3),conda install安装python库时,出现PackagesNotFoundError的解决方案