python --version
.
If you don't have python3, see python.org.
space-diner-VERSION.tar.gz
(without unpacking it).pip3 install space-diner-VERSION.tar.gz
pip install space-diner-VERSION.tar.gz
pip
or pip3
is available depends on your system. When in doubt, try out which one works.)
pip3 install
importlib_resources
.
pip3 install pyreadline
.space-diner
. If it is not available,
you
need to adjust your shell's PATH
(see packaging.python.org
for detailed instructions):
python -m site --user-base
. This will typically return a path like
~/.local/bin
.
export PATH="$PATH:~/.local/bin"
, adjusted with the path from above, to
your
~/.bashrc
file,
e.g., at the end of the file (if you are using the standard bash terminal).
source ~/.bashrc
or start a new terminal.(Instead of installing the package globally, you can alternatively use a virtual environment. See the instructions on packaging.python.org for details.)
You can now start the game from the terminal with the following command: space-diner
You can optionally start the game in a text-only mode (without ASCII art and decorative special characters): space-diner
--text-only
space-diner
returns the error 'command not found', check the following:
python -m site --user-base
, which will return a path. Check if this path is included in the list that is returned by echo $PATH
. If not, check if the line you added to ~/.bashrc
is correct.~/.local/bin/space-diner
(potentially adjusted based on the output of python -m site --user-base
, as described above).