bingooyong / note

1 stars 1 forks source link

【玩转】Python #44

Open bingooyong opened 3 years ago

bingooyong commented 3 years ago

Python3 Virtualenv Setup

Requirements
$ brew install python3

Pip3 is installed with Python3

Installation

To install virtualenv via pip run:

$ pip3 install virtualenv
Usage

Creation of virtualenv:

$ virtualenv -p python3 <desired-path>

Activate the virtualenv:

$ source <desired-path>/bin/activate

Deactivate the virtualenv:

$ deactivate

About Virtualenv