官术网_书友最值得收藏!

Running Python scripts in command prompt

I can actually run the script in a command prompt. If I go to Tools, I can go to Canopy Command Prompt, and that will open up a command window that has all the necessary environment variables already in place for running Python. I can just type python test.py and run the script, and out comes my result:

So in the real world, you'd probably do something like that. It might be on a Crontab or something like that, who knows? But running a real script in production is just that simple. You can now close the command prompt.

主站蜘蛛池模板: 中西区| 台中市| 鹿泉市| 凤冈县| 博客| 郁南县| 宁都县| 建湖县| 怀柔区| 琼结县| 清丰县| 闽清县| 无锡市| 四平市| 镇远县| 海南省| 尤溪县| 台中市| 宝鸡市| 房山区| 南康市| 雅安市| 江津市| 贡觉县| 绍兴县| 嘉善县| 平遥县| 通化市| 太湖县| 文山县| 聂荣县| 辽宁省| 宜昌市| 乡城县| 缙云县| 建昌县| 宣城市| 饶平县| 东海县| 来凤县| 赤峰市|