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.
-
1Possible duplicate of How to run Python script on terminaltripleee– tripleee2018-01-15 08:43:34 +00:00Commented Jan 15, 2018 at 8:43
Add a comment
|
1 Answer
If you are in the processing directory and want to run the test.py script inside the segmentation folder, simply do this:
python segmentation/test.py
3 Comments
user9127040
got this error
python: can't open file 'segmentation/test.py': [Errno 2] No such file or directory Ronan Boiteau
Strange. Are you sure you are in the
processing directory? Can you post the output of ls? And ls segmentation?user9127040
yes i'll try to restart it tends to get buggy at times.