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

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.

主站蜘蛛池模板: 大兴区| 丹寨县| 和静县| 百色市| 文安县| 南丹县| 文化| 公安县| 镇坪县| 莱芜市| 常熟市| 大名县| 西平县| 巴塘县| 辽宁省| 黎平县| 荣昌县| 大洼县| 广昌县| 叙永县| 湖口县| 天等县| 聂荣县| 靖边县| 景东| 深泽县| 肇州县| 铁岭市| 曲周县| 拜城县| 定结县| 嘉义县| 宝兴县| 井冈山市| 钟祥市| 三都| 高州市| 社旗县| 临邑县| 浦城县| 侯马市|