官术网_书友最值得收藏!

Deactivating the virtual environment

It is extremely easy to deactivate a virtual environment generated by the previously explained process. The deactivation will remove all the changes made in the environment variables and will change the prompt back to its default message. Once you deactivate a virtual environment, you will go back to the default Python environment.

In macOS or Linux, just type deactivate and press Enter.

In a Windows Command Prompt, you have to run the deactivate.bat batch file included in the Scripts folder. In our example, the full path for this file is %USERPROFILE%\HillarDjangoREST\01\Scripts\deactivate.bat.

In Windows PowerShell, you have to run the Deactivate.ps1 script in the Scripts folder. In our example, the full path for this file is $env:userprofile\HillarDjangoREST\01\Scripts\Deactivate.ps1. Remember that you must have scripts execution enabled in Windows PowerShell to be able to run the script.

The instructions in the next sections assume that the virtual environment we have created is activated.

主站蜘蛛池模板: 荆州市| 永善县| 鹤壁市| 乐至县| 微博| 上饶县| 沐川县| 苗栗县| 崇左市| 盐亭县| 马公市| 南和县| 巴南区| 沁水县| 黑山县| 棋牌| 岗巴县| 伊宁县| 社旗县| 景泰县| 汕头市| 通河县| 金塔县| 榆树市| 嫩江县| 甘德县| 海晏县| 盘山县| 建宁县| 鹤峰县| 和田市| 怀化市| 临清市| 伊川县| 苏尼特右旗| 东阿县| 霸州市| 华蓥市| 正蓝旗| 南康市| 平陆县|