Virtualenv “. venv/bin/activate” vs “source venv/bin/activate”

前端 未结 2 1893
孤街浪徒
孤街浪徒 2020-12-31 05:32

lets say i created a virtualenv called venv (virtualenv venv)

From reading tutorials, i read there are 2 ways to activate virtual env:

  1. . venv/

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 06:33

    The . command is essentially an alias for the source. They both execute a given script in the current shell without forking a new shell.

    Here are some nice examples.

提交回复
热议问题