# Undo installing modules

**URL:** https://discuss.tryton.org/t/undo-installing-modules/6817
**Category:** System Administrator
**Created:** [December 24, 2023, 9:49am UTC](https://discuss.tryton.org/t/undo-installing-modules/6817 "2023-12-24T09:49:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![efe](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/efe/32/2555_2.png) [@efe](https://discuss.tryton.org/u/efe)
#### Post date: [December 24, 2023, 9:49am UTC](https://discuss.tryton.org/t/undo-installing-modules/6817/1 "2023-12-24T09:49:34Z")

</div>

I had a working trytond system running in a virtual environment and being accessible trhough the desktop client.  
I installed 3 additional modules using pip install   
Unfortunately I had the virtual environment not activated and the modules got installed into the main system.  
Now I can’t connect to the server anymore, the Error being a ConnectionRefusedError: [Errno 111] Connection refused. The error is caused by the most recent call:  
File “/usr/lib/python3.10/socket.py”, line 833, in create\_connection  
sock.connect(sa).  
Is there a way to uninstall the modules from the main system and install them into the virtual environment? Or is there another way to fix this?

---

<div class="post-metadata">

### Author: ![cheche](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/cheche/32/2488_2.png) [@cheche](https://discuss.tryton.org/u/cheche)
#### Post date: [December 24, 2023, 3:44pm UTC](https://discuss.tryton.org/t/undo-installing-modules/6817/2 "2023-12-24T15:44:37Z")

</div>

> [@efe](#):
>
> Is there a way to uninstall the modules from the main system and install them into the virtual environment? Or is there another way to fix this?

@efe to uninstall a module try this:  
`python -m pip uninstall trytond_party`  
When within the virtual enviroment:

```auto
source bin/activate
python -m pip install trytond_party

```

---

<div class="post-metadata">

### Author: ![efe](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/efe/32/2555_2.png) [@efe](https://discuss.tryton.org/u/efe)
#### Post date: [December 27, 2023, 3:53pm UTC](https://discuss.tryton.org/t/undo-installing-modules/6817/3 "2023-12-27T15:53:14Z")

</div>

THX, cheche, that worked!

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [December 28, 2023, 3:53am UTC](https://discuss.tryton.org/t/undo-installing-modules/6817/4 "2023-12-28T03:53:49Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
