# Virtual Environment Support

**URL:** https://discuss.tryton.org/t/virtual-environment-support/571
**Category:** Developer
**Created:** [May 29, 2018, 9:47pm UTC](https://discuss.tryton.org/t/virtual-environment-support/571 "2018-05-29T21:47:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![why2](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@why2](https://discuss.tryton.org/u/why2)
#### Post date: [May 29, 2018, 9:47pm UTC](https://discuss.tryton.org/t/virtual-environment-support/571/1 "2018-05-29T21:47:40Z")

</div>

Hi all,

I’m new to Tryton. After trying Odoo, I would like to try Tryton. This Software seems interesting and promising from my perpective. However, after I clone the repository, I don’t see any `requirements.txt` or `Pipfile`.

Do the developer use virtual environment such as `virtualenv` or `pipenv`?

I saw the list of requirements in the documentation. But it would be good if there is a `Pipfile` in the repository.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 29, 2018, 9:50pm UTC](https://discuss.tryton.org/t/virtual-environment-support/571/2 "2018-05-29T21:50:09Z")

</div>

The dependencies are in the setup.py so you just need to install the package to get all the dependencies.

---

<div class="post-metadata">

### Author: ![why2](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@why2](https://discuss.tryton.org/u/why2)
#### Post date: [May 30, 2018, 11:21am UTC](https://discuss.tryton.org/t/virtual-environment-support/571/3 "2018-05-30T11:21:37Z")

</div>

Hi Cédric,

thanks for the reply. Yes, the dependencies are defined in the setup.py. So, it does not use the virtual environment concept.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 30, 2018, 12:23pm UTC](https://discuss.tryton.org/t/virtual-environment-support/571/4 "2018-05-30T12:23:20Z")

</div>

I do not see why you say that. `requirements.txt` and `Pipfile` are for specific deployment, see [setup.py vs requirements.txt · caremad](https://caremad.io/posts/2013/07/setup-vs-requirement/) while Tryton is a distributed package.  
Both dependencies concepts are not linked in any way to the virtual environment concept. You can install Tryton for development in a virtual environment by running `python setup.py develop`.

---

<div class="post-metadata">

### Author: ![why2](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@why2](https://discuss.tryton.org/u/why2)
#### Post date: [May 30, 2018, 1:22pm UTC](https://discuss.tryton.org/t/virtual-environment-support/571/5 "2018-05-30T13:22:15Z")

</div>

Thanks for the link Cédric. I was wrong since I thought the `setup.py` will install the dependencies globally. I’ve just tested running `python setup.py install` and the libs are installed in my virtual env folder.

So what is the difference between the parameter `install` and `develop` after setup.py?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 30, 2018, 1:48pm UTC](https://discuss.tryton.org/t/virtual-environment-support/571/6 "2018-05-30T13:48:12Z")

</div>

> [@why2](#):
>
> So what is the difference between the parameter `install` and `develop` after setup.py?

`install` is copying the source into `lib/pythonx.y/site-packages/`  
`develop` does not copy the source but store a link in `easy-install.pth` to point to the current folder.  
So `develop` is useful if you are working actually on the source code of Tryton.
