Re: [Tutor] Python3 Help
On 24/07/17 01:58, Alan Gauld via Tutor wrote: > $ which python3 > >> -bash: $: command not found > > The $ is the OS prompt you are not supposed to type it in. While on the subject you might also see something like # Which can mean one of two things 1) It's a comment and you should not type it in 2) It's a root level command and you should su to root before running it. (# was the default Unix prompt for super users) The latter usage is dying out and usually replaced with $ sudo Which means that as an ordinary user ($) you type sudo before the command. sudo should then prompt for your user password before carrying out the command. But the older # prompt style is still around in some onlne tutorials. -- 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 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python3 Help
On 24/07/17 00:19, Brandon Anderson wrote: > 2. I’m trying to locate the directory path to where Python3 is located on my > system, but when I enter > the following command: > $ type -a python3 You could also try $ which python3 > -bash: $: command not found The $ is the OS prompt you are not supposed to type it in. > 3. How do I determine why I’m getting the ‘error’ command, instead of the > directory location of Python3. The error means that there a mistake in your input. In this case you included the $ in your input. Note that this is an OS error and nothing to do with python itself. -- 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 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python3 Help
> 2. I’m trying to locate the directory path to where Python3 is located on my > system, but when I enter > the following command: > $ type -a python3 > > I get: > -bash: $: command not found Ah. Do not include the leading "$" in the command that you're typing. I'm assuming that you're reading some instruction that says something like this: --- Type the following into your command prompt: $ type -a python3 If you are reading such an instruction, don't literally type the dollar sign. "$" is a convention that's used to indicate to you to type the rest of the line into your command prompt. It's because, by default, the command shell will use "$" as its primary prompt to tell the user that it is ready to accept a new command. (https://superuser.com/questions/57575/what-is-the-origin-of-the-unix-dollar-prompt) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor