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

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.

主站蜘蛛池模板: 孙吴县| 措美县| 开化县| 乌鲁木齐市| 贵定县| 湘西| 松桃| 林甸县| 集贤县| 宁阳县| 云阳县| 吴桥县| 广饶县| 广东省| 永川市| 宣汉县| 偃师市| 姜堰市| 商河县| 句容市| 攀枝花市| 保山市| 石门县| 庐江县| 庆阳市| 垫江县| 大连市| 镇巴县| 工布江达县| 民勤县| 青神县| 清徐县| 浦城县| 榕江县| 英德市| 收藏| 宿迁市| 襄城县| 甘谷县| 陇西县| 宁陕县|