Installation¶
System Requirements¶
view.py requires CPython 3.8 or above.
What is CPython?
CPython is the reference/official implementation of Python. If you downloaded Python through python.org or some sort of system package manager (e.g. apt
, pacman
, brew
), it's probably CPython.
Installing with Pipx (Recommended)¶
pipx can install CLIs into isolated environments. view.py recommends using pipx
for installation, and then using view init
to initialize a virtual environment in projects. For example:
Installing via Pip¶
Development Version¶
Finalizing¶
To ensure you've installed view.py correctly, run the view
command:
Note
On Linux, view
is already a command! Read about it here, but in short, it opens vi
in read only mode. You can either shadow this command with view.py's CLI, or use the view-admin
command instead, which is an alias. This documentation will assume you use view
instead of view-admin
, but note that they do the exact same thing.
If this doesn't work properly, try executing via Python: