Python terminal

So for this to work I need to type in
# -- coding: utf-8 --

Then it asks for the address
/usr/local/bin/python3.5

And then
/usr/local/bin

Then it asks for me to type in
python3.5

Then there’s stuff about argument I have no idea about

Plz help

1 Like

I don’t think this is relevant to the core-workflow group. Isn’t there a
“users” discussion group?

That said…

So for this to work I need to type in

-- coding: utf-8 --

Then it asks for the address
/usr/local/bin/python3.5

And then
/usr/local/bin

Then it asks for me to type in
python3.5

Then there’s stuff about argument I have no idea about

Plz help

There’s isn’t enought information in this post to help you.

Are you following some intructions from somewhere?

You say “for this to work”. What’s “this”? What is it meant to do?

I’ll take a guess at what you show:

# -*- coding: utf-8 -*-

This is a Python comment because of the leading “#”. So it has no effect
on the programme itself. The stuff afterward is, IIRC, a special
indication which some editors recognise to indicate that this file is
using the “utf-8” character encoding for the text. That is a common
default, but there are environments where this matters.

Then it asks for the address
/usr/local/bin/python3.5

This is a UNIX file path to the executable for Python 3.5, as commonly
installed as a third party install (i.e. not supplied with the OS).

And then
/usr/local/bin

That is the directory containing the above command executable.

Then it asks for me to type in
python3.5

You should be able to type this anywhere (at a shell prompt i.e. at the
command line). This is because normally /usr/local/bin will be part of
your command search path, so any executable in the directory
/usr/local/bin will be part of the available commands.

Cheers,
Cameron Simpson cs@cskk.id.au

1 Like