蟒蛇 - Windows中的路径环境变量 [英] anaconda - path environment variable in windows
问题描述
c:\windows\system32> python
'python'不被识别为内部或外部命令,可操作的
程序或批处理文件
但是,我不知道哪个是正确的目录,我应该在路径变量中设置。
我尝试了几个变体,没有一个工作,包括:
c:\users\xxx\anaconda3
c:\users\xxx\\ \\anaconda3\Scripts
c:\users\xxx\anaconda3\libs\python34
$ b $有没有人有这个特定的系统星座(windows,anaconda)的经验。谢谢。
原来我错了。
解决方案是:在anaconda(以及其他实现)中,将路径环境变量设置为安装了python.exe的目录。
默认情况下, anaconda中的python.exe文件位于:
c:\ ..... \anaconda
在你这样做之后,显然,python命令的工作原理,在我的情况下,产生以下结果。
python
Python 3.4.3 | Anaconda 2.2.0。 (64 |位)|(默认,2015年11月7日)等等
I am trying to run python from the windows command prompt (windows 10). So the result is the typical one when the path environment variable is not configured
c:\windows\system32>python
'python' is not recognized as an internal or external command, operable
program or batch file
however, I am not sure which is the right directory I should set up in the path variable.
I tried a few variations, and none of them work, including:
c:\users\xxx\anaconda3
c:\users\xxx\anaconda3\Scripts
c:\users\xxx\anaconda3\libs\python34
and none of them works.
Does anyone have experience with this particular system constellation (windows, anaconda). Thanks.
it turns out I was mistaken.
Solution is: in anaconda (as well as in other implementations), set the path environment variable to the directory where 'python.exe' is installed.
As a default, the python.exe file in anaconda is in:
c:\.....\anaconda
after you do that, obviously, the python command works, in my case, yielding the following.
python
Python 3.4.3 |Anaconda 2.2.0. (64|bit)|(default, Nov 7 2015), etc, etc
这篇关于蟒蛇 - Windows中的路径环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!