# How to lock down historical Python packages and prevent their installation?

**URL:** <https://community.sonatype.com/t/how-to-lock-down-historical-python-packages-and-prevent-their-installation/4208>\
**Category:** Sonatype Nexus Repository\
**Tags:** pypi\
**Created:** [May 13, 2020, 5:35pm UTC](https://community.sonatype.com/t/how-to-lock-down-historical-python-packages-and-prevent-their-installation/4208 "2020-05-13T17:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew.s.edmondson](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@matthew.s.edmondson](https://community.sonatype.com/u/matthew.s.edmondson)\
**Post date:** [May 13, 2020, 5:35pm UTC](https://community.sonatype.com/t/how-to-lock-down-historical-python-packages-and-prevent-their-installation/4208/1 "2020-05-13T17:35:37Z")

</div>

Hello,

I am wanting to lock down old versions of a given Python package and prevent the “pip install” of that package. I want to do this to keep a history of these packages, but prevent anything from installing that version.  
For example, let’s say I have urllib3==1.25.7 and I want to upgrade to urllib3==1.25.9. I want to lock down v1.25.7 so that no one can “pip install” it, but it still stays within the repo. Of course, v1.25.9 would be available to “pip install”.

Thanks.
