简体   繁体   English

使用Pypy Interpreter从命令行运行Python脚本

[英]Running Python Scripts from Command Line with Pypy Interpreter

So, I have installed the pypy pre-built interpreter to my home folder in windows; 所以,我已经将pypy预建解释器安装到windows中的home文件夹中; however, it only allows me to execute python scripts through the interpreters interface (similar to IDLE). 但是,它只允许我通过解释器接口执行python脚本(类似于IDLE)。 I would like to extend this functionality to the cmd line in windows by putting something referencing the pypy interpreter to my system's PATH, however, I cannot find any documentation about this. 我想通过将引用pypy解释器的东西放到我的系统的PATH中来将此功能扩展到windows中的cmd行,但是,我找不到任何关于此的文档。

Just add folder with pypy.exe to your PATH. 只需将带有pypy.exe的文件夹添加到PATH即可。 Here you can read documentation about pypy command line. 在这里,您可以阅读有关pypy命令行的文档。

to add to your path just open your start menu 要添加到您的路径,只需打开您的开始菜单

right click on "Computer" 右键单击“计算机”

select "Properties" 选择“属性”

click option for "Advanced System Settings" 单击“高级系统设置”选项

click option for "environmental Variables" 点击“环境变量”选项

change the one named "PATH" to include the folder that you need 更改名为“PATH”的名称以包含您需要的文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM