Why does a virtualenv environment contain argparse

2020-07-02 09:48发布

I am using virtualenv version 1.7.1.2 with python 2.7.3 to create virtual python ennvironments. But when I create such an environment and activate it, I can see the following packages are installed (using pip freeze):

argparse==1.2.1
distribute==0.6.24
wsgiref==0.1.2

Why is that? What does that mean?

1条回答
冷血范
2楼-- · 2020-07-02 10:13

These are the standard packages, and will always follow with that version of Python and Virtualenv.

I can't find out why argparse is there though, but my guess is because it's a dependency or something like wsgiref. Finding package dependencies in Python can be a bit hacky/painful though, especially if it's already installed in your virtualenv.

查看更多
登录 后发表回答