PackageNotInstalledError:软件包未安装在前缀中 [英] PackageNotInstalledError: Package is not installed in prefix
本文介绍了PackageNotInstalledError:软件包未安装在前缀中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
conda更新conda >>成功
conda更新anaconda >>给我一个错误,提示软件包未安装在前缀中.
conda update anaconda >> gives me error saying package is not installed in prefix.
我在系统上安装了Python发行版的单个安装.我该如何解决这个问题?
I have single installation of Python distribution on my system. How do I solve this issue?
(base) C:\Users\asukumari>conda info
active environment : base
active env location : C:\Users\asukumari\AppData\Local\Continuum\anaconda3
shell level : 1
user config file : C:\Users\asukumari\.condarc populated config files : C:\Users\asukumari\.condarc
conda version : 4.5.9
conda-build version : 3.4.1
python version : 3.6.4.final.0
base environment : C:\Users\asukumari\AppData\Local\Continuum\anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\asukumari\AppData\Local\Continuum\anaconda3\pkgs
C:\Users\asukumari\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\asukumari\AppData\Local\Continuum\anaconda3\envs
C:\Users\asukumari\AppData\Local\conda\conda\envs
C:\Users\asukumari\.conda\envs
platform : win-64
user-agent : conda/4.5.9 requests/2.18.4 CPython/3.6.4 Windows/10 Windows/10.0.16299
administrator : False
netrc file : None
offline mode : False
推荐答案
通常,此错误"PackageNotInstalledError:软件包未安装前缀."
是因为您的自定义环境没有conda基础设施.相反,它仅在您的基础上.要更新基本环境,请执行以下操作:
Usually this error, "PackageNotInstalledError: Package is not installed in prefix."
is because your custom environment doesn't have the conda infrastructure. Instead, it is in your base only. To update the base environment:
conda update --name base conda
要查看已安装的版本:
conda list --name base conda
列表的示例输出;
# packages in environment at /Users/me/miniconda2:
#
# Name Version Build Channel
conda 4.6.14 py27_0
conda-env 2.6.0 h36134e3_0
这篇关于PackageNotInstalledError:软件包未安装在前缀中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文