无法在 Windows 上设置 Anaconda:路径问题

Unable to set up Anaconda on Windows : Path problems(无法在 Windows 上设置 Anaconda:路径问题)

本文介绍了无法在 Windows 上设置 Anaconda:路径问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在 Windows 8.1 上设置 Anaconda 1.8,但无法让 Windows 在我的一生中检测到它.我尝试通过编辑环境变量并添加 C:Anaconda 将其添加到系统路径中.

I've been trying to setup Anaconda 1.8 on Windows 8.1 but cant get Windows to detect it for the life of me. I've tried adding it in the system path by editing the environment variables and adding C:Anaconda.

我尝试过 Cygwin 路由并尝试编辑 .bashrc.profile,但路径似乎没有反映 Anaconda 的存在.

I've tried the Cygwin route and tried to edit .bashrc and .profile, but the path doesn't seem to reflect the presence of Anaconda.

Powershell 输出

Powershell output

 PS C:WINDOWSsystem32> python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

推荐答案

仔细查看您的 PATH.如果您之前安装过 Python,可能来自官方 Python.org 安装程序,它可能会出现在您的 PATH 中 C:Anacondain 目录之前.如果是这样,那么这就是您的问题,如果您没有以任何方式对其进行自定义,则应该删除其他 Python 安装.如果您已对其进行了自定义,即您已将软件包安装到其中并且您不想删除它,那么您需要将其移动到 PATH 的末尾,在 C:Anacondain 条目之后.

Look closely at your PATH. If you installed Python before, maybe from the official Python.org installer, it may appear in your PATH before the C:Anacondain directory. If so, then this is your problem, and you should remove that other Python installation if you haven't customized it in any way. If you have customized it, i.e. you have installed packages into it and you don't want to remove it, then you need to move it to the end of your PATH, after the C:Anacondain entry.

要为您的 PATH 提供一个漂亮的图形编辑器,请查看路径编辑器:http://patheditor2.codeplex.com/

For a nice, graphical editor for your PATH, check out Path Editor: http://patheditor2.codeplex.com/

这篇关于无法在 Windows 上设置 Anaconda:路径问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:无法在 Windows 上设置 Anaconda:路径问题