[英]Installing JDK and Python and setting the PATH variable on Windows 7
I recently installed Java's JDK and Python in my Windows 7 system.我最近在我的 Windows 7 系统中安装了 Java 的 JDK 和 Python。 I wanted to access both programs from the command line (whether it be cmd or cygwin) so I used the PATH global variable and entered the path to my JDK.
我想从命令行访问这两个程序(无论是 cmd 还是 cygwin),所以我使用了 PATH 全局变量并输入了我的 JDK 的路径。 What can I do so that python and JDK are accessed by PATH?
我该怎么做才能让 PATH 访问 python 和 JDK? What I am doing now is changing the PATH variable every time.
我现在正在做的是每次都更改 PATH 变量。 Thanks
谢谢
I'm confused.我很困惑。 Are you switching out the paths between the JDK and Python?
您是否正在切换 JDK 和 Python 之间的路径? If that's the case, you can have both paths set in your system's
PATH
variable.如果是这种情况,您可以在系统的
PATH
变量中设置两个路径。 Example: C:\jdk-install\;C:\python-install
示例:
C:\jdk-install\;C:\python-install
Note that only processes started after you change the path will see the change.请注意,只有在更改路径后启动的进程才会看到更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.