Configuring Python Virtual Environment to use Python 3

前端 未结 4 611
北荒
北荒 2021-01-17 06:01

I am learning Django. I installed two different versions of python on my laptop, 2 and 3. I configured my Laptop to use Python 3, so when I check version using the command l

4条回答
  •  醉话见心
    2021-01-17 06:52

    Execute below command line:->

    For Python3 :->

    virtualenv --python = $(which python3) EnvironmentName
    

    For Python2 :->

    virtualenv --python = $(which python) EnvironmentName
    

提交回复
热议问题