【问题标题】:How to get Python 3.5 and Anaconda 3.5 running on ubuntu 16.04?如何让 Python 3.5 和 Anaconda 3.5 在 ubuntu 16.04 上运行?
【发布时间】:2016-08-10 20:22:05
【问题描述】:

用于 python 3.5 和 python 2.7 的 Anaconda 似乎安装为 Ubuntu 上我的主文件夹中的一个文件夹。是否有适用于 Ubuntu 16 的 Anaconda 安装版本?我不确定如何问这个问题,但如果我也使用 Anaconda 3.5,我是否需要默认提供的 python 3.5?

现在看来最好的解决方案是 docker。我的意思是我了解 virtualenv 和 virtualenvwrapper。但是,有时我尝试在我的 .bashrc 中指出我想使用 python 3.5,但我会使用命令 mkvirtualenv,它会开始安装 python 2.7 版本的 python。

我应该选择 Anaconda 还是我的操作系统从 python.org 安装的 python 版本,还是有一种简单的方法来管理许多不同版本的 Python? 谢谢, 布鲁斯

【问题讨论】:

    标签: python python-2.7 python-3.x ubuntu anaconda


    【解决方案1】:

    我在 Ubuntu 16.04 LTS(附带 OpenCV 3)上的 Python 3.5 和 Anaconda 解决方案是安装 Anaconda,然后弃用到 3.5。之后你必须确保更新 anaconda - 这就是我一开始的一点。我给出的命令是:

    bash Anaconda3-4.3.1-Linux-x86_64.sh
    conda install python=3.5
    conda update anaconda
    conda install -c menpo opencv3
    

    这似乎对我有用;在其他几台 Ubuntu 16.04 机器上也试了一下,似乎运行良好。

    【讨论】:

      【解决方案2】:

      使用 anaconda 安装程序存档中的 anaconda 版本 Anaconda3-4.2.0-Linux-x86_64.sh。它带有 python 3.5。这对我有用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-09-20
        • 1970-01-01
        • 2018-08-19
        • 1970-01-01
        • 2018-10-02
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多