<h1style="text-align: left;">Installing Deluge From Source</h1>
This is build manual for Deluge 1.3.x. Build manual for 2.0.x version is here: https://deluge.readthedocs.io/en/latest/devguide/tutorials/01-setup.html
# Dependencies
Deluge has a number of dependencies that are required for it to run properly. Most of them are runtime only deps, but a few are required for successfully building Deluge.
The 1.3.x dependencies are listed below. You will also need to install the appropriate build tools provided by your OS.
For those advanced cases where you need to build and install [libtorrent](http://libtorrent.org/) from source, follow this guide: [Building/libtorrent]/development/building/libtorrent.md)
You can either get the source from a tarball on our [ftp](http://download.deluge-torrent.org/source/?C=M;O=D) or from our [GitRepo]/development/git/gitrepo.md).
For Linux Desktop systems an extra step is required due to an installer [bug](http://dev.deluge-torrent.orghttps://dev.deluge-torrent.org/ticket/1389) not copying data files, such as `deluge.desktop`:
If you have run the build before, ensure you have a clean build environment:
```
python setup.py clean -a
```
## Developer Install
Installing Deluge with `develop` mode creates binaries that link back to source code. Therefore changes will be reflected immediately with no need to repeatedly install.
```
python setup.py develop
```
If you wish to use a specific development directory, the following will create a Deluge install in ~/delugeDev:
```
export PYTHONPATH=${HOME}/delugeDev
python setup.py develop --install-dir ~/delugeDev
```
Do have the included plugins available, build them with
```
python setup.py build_plugins develop
```
Another alternative for a separate Deluge development environment is to use Python [Virtualenv](http://pypi.python.org/pypi/virtualenv)
# Removing From System
In the unlikely event you want to remove Deluge installed by the previous method, you will have to manually delete the Deluge related files on your system. The main files are normally installed in one of the following places: