在Windows 7中设置环境变量 [英] Setting environment variables in windows 7

查看:163
本文介绍了在Windows 7中设置环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows 7中设置我的环境变量,以便我可以从命令行调用prolog。我在系统设置下进入环境变量,并编辑它,使其看起来像这样。

I am trying to set my environment variable in windows 7 so that I can call prolog from the command line. I went into the environment variables under system settings, and edited it so that it looks like this.

C:\Python27;C:\Program Files (x86)\Notepad++;C:\Program Files\pl\bin\prolog;

我不知道我在这里做错了,因为我不断收到消息

I'm not sure what I did wrong here, as I keep getting the message

prolog is not recognized as an internal or external command, operable program or batch file

Python和Notepad ++的工作方式都很好,我有两次检查,以确保我的路径名是正确的。我DID将prolog可执行文件的名称从swipl-win更改为prolog,但这不应该有所作为,因为我也使用python(python更改为python27)。我是否缺少明显的东西?

Both Python and Notepad++ work just fine the way I have them, and I have double checked to make sure my path name is correct. I DID change the name of the prolog executable from swipl-win to prolog, but that shouldn't make a difference, as I did this with python as well (python changed to python27). Am I missing something blatantly obvious?

推荐答案

prolog (可执行文件)里面还有一个叫做prolog的文件夹?如果它位于bin中,则您的路径应为:

Is prolog (the executable) inside a folder also called "prolog"? If it's inside "bin", your path should be:

C:\Python27;C:\Program Files (x86)\Notepad++;C:\Program Files\pl\bin;

(可能是这样,因为在我的系统中 - 我在Windows XP中有Swi-Prolog是一个名为bin的文件夹,没有子文件夹,可执行文件 plwin.exe 里面)

(that's probably the case, since in my system - I have Swi-Prolog in Windows XP - there is a folder called "bin", no subfolders, with the executable plwin.exe inside it)

这篇关于在Windows 7中设置环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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