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

Setting up a virtual environment in Anaconda

A virtual environment allows us to have different versions of libraries and executables, avoiding conflicts between them and making it easy to develop multiple projects at the same time. Creating a virtual environment in Anaconda is easy and only requires executing a single command on Anaconda's CLI. With the following command, we are going to create a virtual environment running Python 3.5 and name it deeplearning:

conda create -n deeplearning pip python=3.5

Now that we have created the deeplearning virtual environment, we are going to activate it so that we can start populating it with Python packages. To do so, open Anaconda's CLI and type the following command:

activate deeplearning

After typing this command, your CLI prompt should change and include a prefix to indicate that the virtual environment is currently active.

主站蜘蛛池模板: 珲春市| 伊宁市| 威远县| 乐亭县| 常宁市| 兴安盟| 怀安县| 黄龙县| 景洪市| 犍为县| 新巴尔虎右旗| 乌兰县| 龙口市| 墨竹工卡县| 舞钢市| 大宁县| 南昌市| 新郑市| 观塘区| 徐汇区| 崇信县| 湘潭市| 垦利县| 无极县| 天门市| 北宁市| 吴旗县| 连城县| 稷山县| 东平县| 迁安市| 巴里| 徐州市| 巴林左旗| 莲花县| 屏边| 眉山市| 资溪县| 曲靖市| 乌拉特后旗| 金秀|