Does a python virtual environment avoid redundant installs?

后端 未结 4 1569
难免孤独
难免孤独 2021-01-17 18:07

I\'m fairly new to python and I\'m beginning to work with python virtual environments. When I create a virtual environment, I have to reinstall all the modules that I need f

4条回答
  •  再見小時候
    2021-01-17 18:47

    Virtual environments segregate modules for an application. This means that upgrading modules in one application does not impact another application. Since modules occasionally have breaking changes, this can be important.

    Are you using the requirements.txt file to help manage the dependencies? It makes installing them easier when you need to reset a virtual environment.

提交回复
热议问题