如何使用Anaconda安装特定版本的Python? [英] How to install the specific version of Python with Anaconda?

查看:2625
本文介绍了如何使用Anaconda安装特定版本的Python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用Python版本3.6.5安装Anaconda.如果我安装Anaconda3-5.2.0,则安装Python 3.5.1.在哪里下载带有Python 3.6.5的Anaconda.大数据脚本仅适用于Anaconda Python 3.6.5.

解决方案

Anaconda下载

使用Python 3.6.5的Anaconda发行版是版本5.2.0 . 1 您可以从 Miniconda .一旦工作正常...

  • 创建您的Anaconda env:

    conda create --name my_env python=3.6.5 anaconda=5.2.0
    

  • 使用新的隔离环境:

    conda activate my_env
    


  • [1] 我是通过运行conda create -n foo --dry-run -c anaconda python=3.6.5 anaconda然后检查Conda在解决方案中最终使用的anaconda软件包的版本来确定的.

    I want to install Anaconda with Python Version 3.6.5. If I install Anaconda3-5.2.0, It install Python 3.5.1. Where to download the Anaconda with Python 3.6.5. The Big Data Scripts work only with Anaconda Python 3.6.5.

    解决方案

    Anaconda Downloads

    The Anaconda distribution with Python 3.6.5 was version 5.2.0.1 You can download this from the Anaconda distribution archive. If you do install from this, then make sure to update Conda immediately after installation:

    conda update conda
    

    However, I strongly recommend the following alternate solution as better practice.

    Miniconda + Anaconda env

    Reasoning

    What is installed in the base env is relatively fixed once you've installed it. Ultimately, you don't want to mess with your base environment, so best practice is to have the latest version there. Fortunately, you don't have to install a full Anaconda distribution, but rather can use the lightweight Miniconda distribution and create a secondary env for the purpose of having an Anaconda Python 3.6.5 distribution. In the long run this will give you better stability.

    Steps

    1. Download and install Miniconda. Once that is working...

    2. Create your Anaconda env:

      conda create --name my_env python=3.6.5 anaconda=5.2.0
      

    3. Use your new isolated env:

      conda activate my_env
      


    [1] I determined this by running conda create -n foo --dry-run -c anaconda python=3.6.5 anaconda and then examining the version of the anaconda package that Conda ended up with in the solve.

    这篇关于如何使用Anaconda安装特定版本的Python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆