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

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.

主站蜘蛛池模板: 洱源县| 长汀县| 沁阳市| 深泽县| 沈阳市| 大悟县| 门头沟区| 张家川| 东丰县| 滕州市| 凉城县| 木里| 昭平县| 大余县| 新民市| 当涂县| 顺昌县| 萨嘎县| 阜宁县| 东明县| 南阳市| 芷江| 新乡县| 博兴县| 江西省| 嘉定区| 华安县| 凌云县| 耒阳市| 四平市| 越西县| 会泽县| 丰原市| 股票| 邹平县| 启东市| 云阳县| 西峡县| 靖州| 花莲市| 宣恩县|