Jul-05-2017, 07:30 AM
(This post was last modified: Jul-05-2017, 07:30 AM by hunnimonstr.)
EDIT * PROBLEM SORTED !! i wasnt prefixing the command with a ./ face!palm moment..
I have tried a shebang
#!/usr/bin/python3.4
Confirming the path,
and used chmod +x filename
[/inline]
but
[inline]pi@PiZweroW1:~/miflora $ nano p.py
pi@PiZweroW1:~/miflora $ ^C
pi@PiZweroW1:~/miflora $ p.py
-bash: p.py: command not found
pi@PiZweroW1:~/miflora $ python3 p.py
hello world
pi@PiZweroW1:~/miflora $
[/inline]
the original hashbang 'shirley' shebang read #!/usr/bin/python3
and the /usr/bin directory contained a python3 -> python3.4 symolic link which may have been dodgy?
Python3.4 and pip3 may have been installed a few times during my attempts to load some libraries for which i had missed prerequisites (java update)
I have tried a shebang
#!/usr/bin/python3.4
Confirming the path,
and used chmod +x filename
#!/usr/bin/python3.4 print ( 'hello world' )[inline]-rwxr-xr-x 1 pi pi 46 Jul 5 05:28 p.py
[/inline]
but
[inline]pi@PiZweroW1:~/miflora $ nano p.py
pi@PiZweroW1:~/miflora $ ^C
pi@PiZweroW1:~/miflora $ p.py
-bash: p.py: command not found
pi@PiZweroW1:~/miflora $ python3 p.py
hello world
pi@PiZweroW1:~/miflora $
[/inline]
the original hashbang 'shirley' shebang read #!/usr/bin/python3
and the /usr/bin directory contained a python3 -> python3.4 symolic link which may have been dodgy?
Python3.4 and pip3 may have been installed a few times during my attempts to load some libraries for which i had missed prerequisites (java update)