在 Windows 中从命令行运行 python 脚本 [英] Running a python script from the command line in Windows

查看:39
本文介绍了在 Windows 中从命令行运行 python 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 SnakeFood 来分析 Python 项目.我在 Windows 机器上,到目前为止我已经能够弄清楚如何:

I'm trying to run SnakeFood, to analyze a python project. I'm on a Windows machine and so far I've been able to figure out how to:

  • 安装 Tortoise for Mercurial 以从站点下载 SnakeFood 代码
  • 设置 windows 路径以从命令提示符接受 python,这样我就可以执行 python setup.py install 并将蛇食品放入我的site-packages"文件夹
  • install Tortoise for Mercurial to download the SnakeFood code from the site
  • set the windows Path to accept python from the command prompt so I could do python setup.py install and got snakefood to go into my "site-packages" folder

现在,文档除了:sfood/path/to/my/project

我无法使用此命令.我错过了什么?

I can't get this command to work. What am I missing?

推荐答案

这行得通吗?

python "DriveLetter:\path\to\sfood.py" "DriveLetter:\path\to\your\project"

这篇关于在 Windows 中从命令行运行 python 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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