Skip to content

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.

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:

$ pipx install view.py
... pipx output
$ view init

Installing via Pip

$ pip install view.py

Development Version

$ pip install git+https://github.com/ZeroIntensity/view.py

Finalizing

To ensure you've installed view.py correctly, run the view command:

$ view

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:

$ python3 -m view