用户登录
用户注册

分享至

错误:无法创建临时目录“C:UsersuserAppDataLocalTempconda-<RANDOM>"

  • 作者: Christmass
  • 来源: 51数据库
  • 2022-11-15

问题描述

当我尝试激活conda activate tensorflow_cpu"时

When I try to Activate "conda activate tensorflow_cpu"

conda activate tensorflow_cpu

错误:无法创建临时目录C:UsersuserAppDataLocalTempconda-"

Error : Failed to create temp directory "C:UsersuserAppDataLocalTempconda-"

推荐答案

这是由于 conda 开发人员的错误.该错误是临时路径的名称带有空格,因此要克服,请重新分配环境变量 TEMP、TMP.(适用于窗户)

It is due to a bug from conda developers. The bug is the temp path is having names with spaces, so to overcome please reassign the Env Variables TEMP, TMP. (for windows)

  1. 转到环境变量
  2. 在用户变量"部分查找 TEMP、TMP
  3. 双击 TMP 并在变量值"中输入C:conda_tmp"
  4. 对 TEMP 也一样
  5. 关闭环境变量部分
  6. 重启 anaconda 提示,错误应该消失
软件
前端设计
程序设计
Java相关