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

Recommended libraries and how to install

Its easy to add or remove libraries from the Anaconda prompt. Once you have an the preferred environment activated, the simple Conda install command will search the Anaconda cloud repo for a matching package, and will begin download if it exists. Conda will warn if there are version dependencies with your other libraries. Always pay attention to these warnings, so that you know if any other library versions are affected. If, at any time, you need a reminder of what is in your environment, use the Conda list command to check package names and versions.

Let's look at some example commands:

  1. Create a new environment called my_env with Python version 3 using the following command:
(base) $ Conda create -n my_env Python=3
  1. Check whether my_env was created successfully by using the following command:
(base) $ Conda info --envs

You will see the following screen on the execution of the preceding command:

  1. Activate a new environment by using the following command:
(base) $ Conda activate my_env
  1. Install the numpy math library by using the following command:
(my_env) $ Conda install numpy
  1. Use Conda list as follows, to check whether a new library was installed or not and all other libraries and versions in my_env:
(my_env) $ Conda list 

You will see the following screen on the execution of the preceding command:

主站蜘蛛池模板: 连江县| 和林格尔县| 苗栗市| 女性| 镇平县| 新巴尔虎右旗| 东乡族自治县| 汝阳县| 合阳县| 浮山县| 临泉县| 无为县| 桦甸市| 竹溪县| 绵竹市| 屏东市| 屏东市| 武宁县| 舟山市| 龙海市| 东至县| 邓州市| 黑河市| 合作市| 余庆县| 象州县| 罗甸县| 沅陵县| 望城县| 克什克腾旗| 江孜县| 长沙市| 饶平县| 新民市| 贵德县| 高淳县| 瑞安市| 萨迦县| 宿松县| 察隅县| 双鸭山市|