- Hands-On Data Science and Python Machine Learning
- Frank Kane
- 105字
- 2021-07-15 17:15:05
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.
推薦閱讀
- SPSS數(shù)據(jù)挖掘與案例分析應(yīng)用實(shí)踐
- 案例式C語言程序設(shè)計(jì)
- 劍指JVM:虛擬機(jī)實(shí)踐與性能調(diào)優(yōu)
- AWS Serverless架構(gòu):使用AWS從傳統(tǒng)部署方式向Serverless架構(gòu)遷移
- Dependency Injection in .NET Core 2.0
- 編程珠璣(續(xù))
- NumPy Essentials
- 算法訓(xùn)練營(yíng):提高篇(全彩版)
- 利用Python進(jìn)行數(shù)據(jù)分析(原書第3版)
- C語言程序設(shè)計(jì)
- SQL Server實(shí)用教程(SQL Server 2008版)
- 編寫高質(zhì)量代碼:改善Objective-C程序的61個(gè)建議
- Application Development with Swift
- AutoCAD基礎(chǔ)教程
- MySQL數(shù)據(jù)庫應(yīng)用實(shí)戰(zhàn)教程(慕課版)