zoukankan      html  css  js  c++  java
  • Win10使用Anaconda管理Python3与Python2(兼容Atom)

    前言

    日常编程使用Python3,但是某些脚本需要Python2环境。
    使用其它的包管理工具都感觉对Win10的友好性不佳。

    Anaconda的安装与使用

    1.下载

    https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/下载所需要的包
    本处示例中使用Anaconda3-5.1.0-Windows-x86_64.exe
    安装过程中这里两处都打勾,其它根据需要即可。

    2.修改为国内源

    参照https://mirrors.tuna.tsinghutian'jiaa.edu.cn/help/anaconda/在cmd中执行以下内容

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    conda config --set show_channel_urls yes
    

    3.添加Python2.7环境

    打开Anaconda Navigator新建Python2.7的环境

    4.使用Python2.7环境

    打开cmd运行 activate Python27,查看Python版本

    使Atom使用Anaconda环境变量

    1.Atom使用Python3.6

    使用命令行执行atom打开,查看版本号

    执行 activate Python27再执行atom更换环境

    参考来源:http://python.jobbole.com/86236/
    https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

    转载请注明出处,谢谢

    如有收获,请点赞

    如有不同意见,请留言

    如有错漏请指正,不胜感激

  • 相关阅读:
    论语言思维的差异
    lua经典问题
    跳槽的故事
    未来一年计划
    腾讯面试题 找重复的数
    nodejs学习
    node记录
    mysql 常用总结
    ubuntu 服务器搭建汇总
    ubuntu下安装golang
  • 原文地址:https://www.cnblogs.com/SKTone/p/8456565.html
Copyright © 2011-2022 走看看