Why does my python script just open IDLE? -
i can't understand why running python program opens idle.
not sure if more appropriate on superuser, here goes: can't run python scripts command line.
osx 10.7.4, fresh install of python 3.2.3. i've got following python script test.py
:
#! /usr/bin/env python print("hello world")
i make executable:
$> chmod +x test.py
then all of following cause terminal open idle, no other output of kind, i.e. script not run:
- python test.py
- python -i test.py
- ./test.py
even python -c 'print(5)'
dumps me idle without executing command! idle works fine. know going on?
not sure problem, have tried run
python3 test.py
or change shebang line python3?
trying take @ content in "python" console script (e.g. file
) may reveal why linked idle.which python
Comments
Post a Comment