错误:无法创建临时目录“C:UsersuserAppDataLocalTempconda-<RANDOM>" [英] Error : Failed to create temp directory "C:UsersuserAppDataLocalTempconda-<RANDOM>"

查看:37
本文介绍了错误:无法创建临时目录“C:UsersuserAppDataLocalTempconda-<RANDOM>"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试激活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 提示,错误应该消失

这篇关于错误:无法创建临时目录“C:UsersuserAppDataLocalTempconda-<RANDOM>"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆