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

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.

主站蜘蛛池模板: 宁明县| 林芝县| 荣昌县| 苏尼特左旗| 普格县| 阳信县| 邵武市| 五家渠市| 云南省| 白山市| 彩票| 木里| 施秉县| 双江| 吉林省| 沾益县| 洪洞县| 定陶县| 辰溪县| 仙桃市| 镇雄县| 肥东县| 全州县| 文昌市| 勐海县| 抚顺县| 龙井市| 唐河县| 竹溪县| 万年县| 商丘市| 惠东县| 常州市| 上蔡县| 阿拉善右旗| 庆安县| 桐庐县| 徐闻县| 辽阳县| 康平县| 乐陵市|