Conda和Anaconda运行不同的Python安装?

2024-03-29 05:40:12 发布

您现在位置:Python中文网/ 问答频道 /正文

使用conda更新conda,然后使用anaconda,似乎正在处理python的两个不同安装。因此,似乎是相互对立的。例如:

My-MacBook-Pro:~ me$ conda update conda
Error: unknown host: http://repo.continuum.io/pkgs/pro/osx-64/

Package plan for installation in environment /Users/myname/anaconda:

The following packages will be UN-linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.5               |                3
    readline-6.2               |                1

The following packages will be linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.6               |                1   hard-link
    readline-6.2               |                2   hard-link

Proceed ([y]/n)? y

Unlinking packages ...
[      COMPLETE      ] |##################################################| 100%
Linking packages ...
[      COMPLETE      ] |##################################################| 100%
My-MacBook-Pro:~ me$ conda update anaconda

Package plan for installation in environment /Users/myname/anaconda:

The following packages will be UN-linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.6               |                1
    readline-6.2               |                2

The following packages will be linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.5               |                3   hard-link
    readline-6.2               |                1   hard-link

Proceed ([y]/n)? y

Unlinking packages ...
[      COMPLETE      ] |##################################################| 100%
Linking packages ...
[      COMPLETE      ] |##################################################| 100%
My-MacBook-Pro:~ me$ conda update conda

Package plan for installation in environment /Users/myname/anaconda:

The following packages will be UN-linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.5               |                3
    readline-6.2               |                1

The following packages will be linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.6               |                1   hard-link
    readline-6.2               |                2   hard-link

Proceed ([y]/n)?

建议如何处理这一点,这不是一个巨大的问题,目前功能方面。在


Tags: thebuildpackagereadlinemypackageslinkanaconda
1条回答
网友
1楼 · 发布于 2024-03-29 05:40:12

这是因为Anaconda最新版本中的Python版本是2.7.5。当一个新版本的水蟒发布(这应该发生在本周),这个问题将消失。在

anaconda包是一组稳定的版本包,这些版本包已经过相互测试。因此,安装或更新anaconda可能会降低Python的级别,因为这是anaconda中的版本。在

相关问题 更多 >