我想在Anaconda Python中安装cvxopt。这是我的软件版本:

$ python --version
Python 3.6.5 :: Anaconda, Inc.
$ conda --version
conda 4.5.11
$ anaconda --version
anaconda Command line client (version 1.6.14)


我尝试通过键入以下内容进行安装:

conda install cvxopt


系统提示我将下载大约40个软件包,将安装大约10个新软件包,将删除软件包anaconda,以及将更新大约25个软件包?


是新包依赖吗?
为什么conda会删除anaconda包?康达不是水蟒的一部分吗?


这是完整的输出:

Solving environment: done

## Package Plan ##

  environment location: /usr/local/anaconda3

  added / updated specs:
    - cvxopt


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    suitesparse-5.2.0          |       h171a5a3_0         2.4 MB
    openssl-1.1.1a             |       h7b6447c_0         5.0 MB
    freetype-2.9.1             |       h8a8886c_1         822 KB
    harfbuzz-1.8.8             |       hffaf4a1_0         863 KB
    libssh2-1.8.0              |       h1ba5d50_4         233 KB
    cairo-1.14.12              |       h8948797_3         1.3 MB
    libstdcxx-ng-8.2.0         |       hdf63c60_1         2.9 MB
    conda-4.6.1                |           py36_0         1.7 MB
    glpk-4.65                  |       h3ceedfd_2         1.1 MB
    expat-2.2.6                |       he6710b0_0         187 KB
    krb5-1.16.1                |       h173b8e3_7         1.4 MB
    tbb-2018.0.5               |       h6bb024c_0         1.4 MB
    sqlite-3.26.0              |       h7b6447c_0         1.9 MB
    cvxopt-1.2.0               |   py36h9e0dedd_0         537 KB
    glib-2.56.2                |       hd408876_0         5.0 MB
    python-3.6.8               |       h0371630_0        34.4 MB
    certifi-2018.11.29         |           py36_0         146 KB
    gsl-2.4                    |       h14c3975_4         2.6 MB
    cryptography-2.4.2         |   py36h1ba5d50_0         618 KB
    libuuid-1.0.3              |       h1bed415_2          16 KB
    curl-7.63.0                |    hbc83047_1000         145 KB
    libgcc-ng-8.2.0            |       hdf63c60_1         7.6 MB
    fribidi-1.0.5              |       h7b6447c_0         112 KB
    ca-certificates-2018.12.5  |                0         123 KB
    pango-1.42.3               |       h8589676_0         522 KB
    libpng-1.6.36              |       hbc83047_0         346 KB
    pycurl-7.43.0.2            |   py36h1ba5d50_0         185 KB
    tk-8.6.8                   |       hbc83047_0         3.1 MB
    qt-5.9.7                   |       h5867ecd_1        85.9 MB
    mkl-2018.0.3               |                1       198.7 MB
    libcurl-7.63.0             |    h20c2e04_1000         550 KB
    metis-5.1.0                |       hf484d3e_4         4.1 MB
    fontconfig-2.13.0          |       h9420a91_0         291 KB
    matplotlib-3.0.2           |   py36h5429711_0         6.5 MB
    pillow-5.4.1               |   py36h34e0f95_0         627 KB
    ------------------------------------------------------------
                                           Total:       373.2 MB

The following NEW packages will be INSTALLED:

    cvxopt:          1.2.0-py36h9e0dedd_0
    fribidi:         1.0.5-h7b6447c_0
    glpk:            4.65-h3ceedfd_2
    gsl:             2.4-h14c3975_4
    krb5:            1.16.1-h173b8e3_7
    libuuid:         1.0.3-h1bed415_2
    metis:           5.1.0-hf484d3e_4
    suitesparse:     5.2.0-h171a5a3_0
    tbb:             2018.0.5-h6bb024c_0

The following packages will be REMOVED:

    anaconda:        5.2.0-py36_3

The following packages will be UPDATED:

    ca-certificates: 2018.03.07-0            --> 2018.12.5-0
    cairo:           1.14.12-h7636065_2      --> 1.14.12-h8948797_3
    certifi:         2018.4.16-py36_0        --> 2018.11.29-py36_0
    conda:           4.5.11-py36_0           --> 4.6.1-py36_0
    cryptography:    2.2.2-py36h14c3975_0    --> 2.4.2-py36h1ba5d50_0
    curl:            7.60.0-h84994c4_0       --> 7.63.0-hbc83047_1000
    expat:           2.2.5-he0dffb1_0        --> 2.2.6-he6710b0_0
    fontconfig:      2.12.6-h49f89f6_0       --> 2.13.0-h9420a91_0
    freetype:        2.8-hab7d2ae_1          --> 2.9.1-h8a8886c_1
    glib:            2.56.1-h000015b_0       --> 2.56.2-hd408876_0
    harfbuzz:        1.7.6-h5f0a787_1        --> 1.8.8-hffaf4a1_0
    libcurl:         7.60.0-h1ad7b7a_0       --> 7.63.0-h20c2e04_1000
    libgcc-ng:       7.2.0-hdf63c60_3        --> 8.2.0-hdf63c60_1
    libpng:          1.6.34-hb9fc6fc_0       --> 1.6.36-hbc83047_0
    libssh2:         1.8.0-h9cfc8f7_4        --> 1.8.0-h1ba5d50_4
    libstdcxx-ng:    7.2.0-hdf63c60_3        --> 8.2.0-hdf63c60_1
    matplotlib:      2.2.2-py36h0e671d2_1    --> 3.0.2-py36h5429711_0
    mkl:             2018.0.2-1              --> 2018.0.3-1
    openssl:         1.0.2o-h20670df_0       --> 1.1.1a-h7b6447c_0
    pango:           1.41.0-hd475d92_0       --> 1.42.3-h8589676_0
    pillow:          5.1.0-py36h3deb7b8_0    --> 5.4.1-py36h34e0f95_0
    pycurl:          7.43.0.1-py36hb7f436b_0 --> 7.43.0.2-py36h1ba5d50_0
    python:          3.6.5-hc3d631a_2        --> 3.6.8-h0371630_0
    qt:              5.9.5-h7e424d6_0        --> 5.9.7-h5867ecd_1
    sqlite:          3.23.1-he433501_0       --> 3.26.0-h7b6447c_0
    tk:              8.6.7-hc745277_3        --> 8.6.8-hbc83047_0

Proceed ([y]/n)? n


CondaSystemExit: Exiting.

最佳答案

anaconda程序包称为“元程序包”,因为它本身不包含任何代码,而是指定了应安装的其他程序包的依赖项。软件包cvoptx不是anaconda软件包指定的软件包之一,因此,如果您尝试安装cvoptx,则conda会通过删除anaconda软件包解决冲突(因为您给了cvoptx通过指定要在环境中安装的优先级来获得更高的优先级)。

condaanaconda是单独的,并且具有单独的版本。 conda是命令行界面,可用于安装,更新和删除程序包和环境。上面描述了anaconda

最后(令人困惑),命令行上的anaconda命令由anaconda-client包提供,而不是anaconda包提供。如果要查看已安装的Anaconda的版本,请使用conda list anaconda。如果要使用anaconda-client命令行工具的版本,请使用anaconda --versionanaconda-client用于将软件包和环境上传到https://anaconda.org

关于python - 安装Python软件包将下载,安装和删除其他软件包,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54408228/

10-13 09:51