-
Notifications
You must be signed in to change notification settings - Fork 5
Installing the Tools
ZettelGeist is a Python application and library. It can be installed from PyPI.
We support Unix/Linux platforms only. This includes, but is not limited to:
- Linux/BSD systems
- OS X using Homebrew
- Windows using Windows Subsystem for Linux.
The minimum Python version is 3.10.
You must have sqlite3 with full-text search.
Most built-in versions of sqlite3
have this, including the version distributed with OS X Homebrew.
We encourage and assume that you use a virtual environment (venv
) for installing anything Python-related.
See Creation of virtual environments.
-
Create a virtual environment for running ZettelGeist:
$ python3 -m venv ~/zenv
You may install your environment wherever you like. We will assume
~/zenv
. -
Source the virtual environment
$ . ~/zenv/bin/activate
The prompt will now be prefixed by
(zenv)
, the environment created in (1). The commanddeactivate
returns you to the system environment. -
Confirm that you are picking up the right
python
andpip
.(zenv) $ which pip /path/to/zenv/bin/pip (zenv) $ which python /path/to/zenv/bin/python
In place of
path/to/
you should see the absolute path to the environment created in (1). -
Install ZettelGeist
(zenv) $ pip install zettelgeist Collecting zettelgeist Downloading zettelgeist-0.12.2-py3-none-any.whl Collecting tatsu (from zettelgeist) Using cached TatSu-4.2.5-py2.py3-none-any.whl Collecting PyYAML (from zettelgeist) Installing collected packages: tatsu, PyYAML, zettelgeist Successfully installed PyYAML-3.12 tatsu-4.2.5 zettelgeist-0.12.2
If you see
zettelgeist-<version>
in the output, you should have a successful install. -
Verify the installation
(zenv) $ which zcreate /path/to/zenv/bin/zcreate (zenv) $ which zimport /path/to/zenv/bin/zimport (zenv) $ which zfind /path/to/zenv/bin/zfind (zenv) $ which zfilter /path/to/zenv/bin/zfilter (zenv) $ which zettel /path/to/zenv/bin/zettel
You may now proceed to the Manual.
-
Create a virtual environment for running ZettelGeist:
$ python3 -m venv ~/zenv
You may install your environment wherever you like. We will assume
~/zenv
. -
Source the virtual environment
$ . ~/zenv/bin/activate
The prompt will now be prefixed by
(zenv)
, the environment created in (1). The commanddeactivate
returns you to the system environment. -
Confirm that you are picking up the right
python
andpip
.(zenv) $ which pip /path/to/zenv/bin/pip (zenv) $ which python /path/to/zenv/bin/python
In place of
path/to/
you should see the absolute path to the environment created in (1). -
Clone the Repository
$ git clone https://github.com/ZettelGeist/zettelgeist
- Install ZettelGeist. From the ZettelGeist source directory run
$ python -m pip install .
-
Verify the installation
(zenv) $ which zcreate /path/to/zenv/bin/zcreate (zenv) $ which zimport /path/to/zenv/bin/zimport (zenv) $ which zfind /path/to/zenv/bin/zfind (zenv) $ which zfilter /path/to/zenv/bin/zfilter (zenv) $ which zettel /path/to/zenv/bin/zettel
ZettelGeist - Wiki Home Page | Repository