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

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.

主站蜘蛛池模板: 阜康市| 胶南市| 德江县| 当阳市| 太白县| 盈江县| 桃江县| 赣州市| 遂昌县| 长顺县| 孙吴县| 渭南市| 寿光市| 融水| 桦甸市| 那坡县| 阳高县| 柳江县| 萨嘎县| 平陆县| 泰安市| 文登市| 通城县| 西和县| 和林格尔县| 疏勒县| 阿拉善右旗| 成安县| 堆龙德庆县| 科技| 阳东县| 满洲里市| 吉林省| 贵阳市| 泾川县| 枞阳县| 台东市| 光山县| 当涂县| 衡阳市| 长宁县|