简体   繁体   中英

How can i run my python code from the terminal?

In my current directory called processing i have many folders, one of them is called segmentation , there is many files in segmentation one of them is test.py . In my terminal i am in processing and i want to run test.py from there, i tried python -m segmentation.test but this command didn't work.

如果您位于processing目录中,并且想要在segmentation文件夹中运行test.py脚本,只需执行以下操作:

python segmentation/test.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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