[英]How to set environment variable PATH to use BOTH JAVA and Python
我不能同时使用Java和Python。
当我设定
%JAVAHOME%\bin; %PYTHONPATH%;
我可以使用Java,但不能使用python。 当我设定
%PYTHONPATH%; %JAVAHOME%\bin;
我可以使用python,但不能使用java。
我正在使用Windows7。如何解决此问题?
不要在PATH
条目中放置空格
set "PATH=%JAVAHOME%\bin;%PYTHONPATH%;%PATH%"
有关更多信息,请使用此链接
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
您是否尝试过在分号后删除空格
%JAVAHOME%\bin;%PYTHONPATH%;
Select Start, select Control Panel. double click System, and select the Advanced tab.
Click Environment Variables. In the section System Variables or User Variable, find
the PATH environment variable and edit it.and write the path of your compiler like this way:
Assume that your
java compiler path is:D:\java\bin
python compiler path is:C:\python27
so you have to set your User or System like variables like this:
Variable name:PATH
Variable value:D:\java\bin;C:\python27
You don't have to leave any space between the paths and you can add as many
path as you want
Have a look at this:[http://i.stack.imgur.com/N2C10.png]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.