Windows 7上的Conda更新失败,出现Yaml导入错误 [英] Conda update on Windows 7 failing with import error of yaml

查看:326
本文介绍了Windows 7上的Conda更新失败,出现Yaml导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有Anaconda 1.7的Win7 64位上,当我转到命令提示符并尝试:

On Win7 64 bit, with Anaconda 1.7, when I go to the command prompt and try:

conda update conda

我收到以下错误.

错误:无法导入yaml(需要读取conda食谱的meta.yaml文件)

Error: could not import yaml (required to read meta.yaml files of conda recipes)

所有conda命令都给出相同的错误.例如:

All conda commands give the same error. For example:

c:\Anaconda\Lib\site-packages\conda\cli>conda update conda

请从哪里开始解决此问题?我认为这不是PATH问题:

Where do I start to fix this, please? I don't think this is a PATH problem as I can see:

PATH = ... C:\ Anaconda; C:\ Anaconda \ Scripts; C:\ Program Files \ Intel \ WiFi ... \ Common Files \ Intel \ WirelessCommon \; C:\ Python27; C:\ Python27

PATH = ...C:\Anaconda;C:\Anaconda\Scripts;C:\Program Files\Intel\WiFi...\Common Files\Intel\WirelessCommon\;C:\Python27;C:\Python27

推荐答案

我发现解决此问题的唯一方法是搜索yaml并将其手动添加到PYTHONPATH环境变量中,例如

The only way I found to fix this was to search for yaml and manually add it to the PYTHONPATH environment variable, e.g.

PYTHONPATH=C:\Anaconda\pkgs\pyyaml-3.10-py27_1\Lib\site-packages

这篇关于Windows 7上的Conda更新失败,出现Yaml导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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