# PEP 722: Dependency specification for single-file scripts

**URL:** <https://discuss.python.org/t/pep-722-dependency-specification-for-single-file-scripts/29905>\
**Category:** Standards\
**Created:** [July 19, 2023, 12:16pm UTC](https://discuss.python.org/t/pep-722-dependency-specification-for-single-file-scripts/29905 "2023-07-19T12:16:05Z")\
**Posts on this page:** 1\
**Showing post:** 116

<div class="post-metadata">

**Author:** ![defjaf](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/defjaf/32/12838_2.png) [@defjaf](https://discuss.python.org/u/defjaf)\
**Post date:** [July 28, 2023, 10:51am UTC](https://discuss.python.org/t/pep-722-dependency-specification-for-single-file-scripts/29905/116 "2023-07-28T10:51:49Z")

</div>

The way I solve this problem (and perhaps many other users, too) is simple: I don’t use virtual environments. So I `pip install` everything that I need for such scripts in my main (not system) python and then everything… just works. (I agree that knowing the dependencies is useful even in my case, but using something like `pip-run` seems heavyweight.)

This is a case where `venv`s are a classic non-solution to a non-problem, except in the edge case of conflicting dependencies (see also my [rant here](https://discuss.python.org/t/package-dependencies-and-virtual-environments/29954)). But those are not really solved by this proposal, since it doesn’t specify version numbers.

---

_[View the full topic](https://discuss.python.org/t/pep-722-dependency-specification-for-single-file-scripts/29905)._
