# Dependency conflict

**URL:** <https://discourse.slicer.org/t/dependency-conflict/37038>\
**Category:** Support\
**Created:** [June 26, 2024, 12:14pm UTC](https://discourse.slicer.org/t/dependency-conflict/37038 "2024-06-26T12:14:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aamir\_Khan1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aamir_khan1/32/68485_2.png) [@Aamir\_Khan1](https://discourse.slicer.org/u/Aamir_Khan1)\
**Post date:** [June 26, 2024, 12:14pm UTC](https://discourse.slicer.org/t/dependency-conflict/37038/1 "2024-06-26T12:14:44Z")

</div>

HI,

I have developed a custom 3d slicer module. It used to call a deep learning module and executes the code perfectly.  
This is the repo:  
[AMK-AQ/CTPelvic1K: Resources of the paper “Deep Learning to Segment Pelvic Bones: Large-scale CT Datasets and Baseline Models”. This version is compatible with Windows also. (github.com)](https://github.com/AMK-AQ/CTPelvic1K)

But as I upgraded my python to 3.12, it started to throw error, as standard library module disutils got deprecated in this version.

Now, if I install the CTPelvic1K with poetry and create a virtual environemnt with 3.10, everything works fine.

I wanted to ask, is there a way to activate a virtual environemnt through python , execute my deep learning code and exit the environment?

Or should I use some other option, like docker etc?

Thanks
