conda ValueError:无法解析Cpython sys.version

时间:2017-03-04 19:49:17

标签: python anaconda

我正在尝试在Windows 7 64位系统上的现有Python环境(32位)上安装Anaconda(32位)。我能够运行Anaconda python环境,但导航器没有响应, conda 命令失败并显示错误

  

ValueError:无法解析CPython sys.version

我删除了C:\ Python27; C:\ Python27 \脚本;从PATH变量,但我必须遗漏一些东西!

Traceback (most recent call last):
  File "C:/Users/filepath/test.py", line 25, in <module>
    cc = ConfigDict('DBConfig')
  File "C:/Users/filepath/test.py", line 16, in __init__
    pkl = pickle.load(fh)
  File "C:/Users/filepath/test.py", line 21, in __setitem__
    with open(self._config_file, 'wb') as fh:
AttributeError: 'ConfigDict' object has no attribute '_config_file'

1 个答案:

答案 0 :(得分:0)

我只更新了系统环境变量PATH,并没有触及设置为C:\ Python27的PythonPath。这就是ValueError的原因。我找到了我的解决方案in this stackoverflow answer