Does a python virtual environment avoid redundant installs?

后端 未结 4 1567
难免孤独
难免孤独 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:50

    Virtual environments are semi-isolated Python environments (self-contained directory) that allows packages to be installed for use by a particular application, rather that being installed system wide.

    The main advantage being that it enables the user to install for each python project/environment different libraries, dependencies and why not, even a different Python interpreter.

    Please take a look here: https://docs.python-guide.org/dev/virtualenvs/ it will explain more thoroughly

提交回复
热议问题