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

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

问题描述

我一直在尝试在Windows 8.1上设置Anaconda 1.8,但无法让Windows检测到它的生活。我试图通过编辑环境变量并添加 C:\Anaconda 在系统路径中添加它。
我试过Cygwin路由,并试图编辑.bashrc和.profile,但路径似乎并不反映Anaconda的存在。
Powershell输出

  PS C:\WINDOWS\system32> python 
Python 2.7.3(默认,2012年4月10日,23:31:26)[MSC v.1500 32位(Intel)] on win32
键入help,copyright 或许可证以获取更多信息。

此问题的任何帮助将不胜感激。

解决方案

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

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


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 envrionment variables and adding C:\Anaconda. I've tried the Cygwin route and tried to edit .bashrc and .profile, but the path doesnt seem to reflect the presence of Anaconda. Powershell output

 PS C:\WINDOWS\system32> 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.

Any help on this issue would be appreciated .

解决方案

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:\Anaconda\bin 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:\Anaconda\bin entry.

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

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

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