[Tutor] Split Drive Setup
Alan Gauld
alan.gauld at yahoo.co.uk
Thu May 9 18:44:19 EDT 2024
On 09/05/2024 13:48, Mike via Tutor wrote:
> ...have a portable python facility on the USB HDD.
That may not work as you'd hope. I think the install puts
some files into system libraries as well as the "install
directory". But I may be wrong. I know there are "Python
on a USB stick" distributions on the web.
> I created a one line test script on the pc
> (print (“hello python !!”) with a ‘py’ file type
> label and then double clicked that file but nothing happened .?
I suspect the interpreter started, ran your script then
stopped and closed before you could see it.
Try adding the line
input("Hit enter to close...")
at the end and see if anything appears.
If not start a CMD prompt and run the script manually:
C:\WINDOWS> py myscript.py
And see if you get any error messages.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list