1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
# Installation instructions
## pip
**Note that using pip outside virtualenv is not recommended since it ignores
your systems package manager. If you aren't comfortable debugging package
installation issues, this is not the option for you.**
Create and activate a virtualenv:
```bash
virtualenv dfdatetimeenv
cd dfdatetimeenv
source ./bin/activate
```
Upgrade pip and install dfDateTime dependencies:
```bash
pip install --upgrade pip
pip install dfdatetime
```
To deactivate the virtualenv run:
```bash
deactivate
```
## Ubuntu 18.04 and 20.04 LTS
To install dfDateTime from the [GIFT Personal Package Archive (PPA)](https://launchpad.net/~gift):
```bash
sudo add-apt-repository ppa:gift/stable
```
Update and install dfDateTime:
```bash
sudo apt-get update
sudo apt-get install python3-dfdatetime
```
## Windows
The [l2tbinaries](https://github.com/log2timeline/l2tbinaries) contains the
necessary packages for running dfDateTime. l2tbinaries provides the following
branches:
* main; branch intended for the "packaged release" of dfDateTime and dependencies;
* dev; branch intended for the "development release" of dfDateTime;
* testing; branch intended for testing newly created packages.
The l2tdevtools project provides [an update script](https://github.com/log2timeline/l2tdevtools/wiki/Update-script)
to ease the process of keeping the dependencies up to date.
The script requires [pywin32](https://github.com/mhammond/pywin32/releases) and
[Python WMI](https://pypi.org/project/WMI).
To install the release versions of the dependencies run:
```
set PYTHONPATH=.
C:\Python38\python.exe tools\update.py --preset dfdatetime
```
|