汇总系列:https://www.cnblogs.com/dunitian/p/4822808.html#ai
Jupyter美化: https://www.cnblogs.com/dotnetcrazy/p/8760189.html
2019-04-04:现在不推荐换源了,国内的现在基本上都移除Conda的镜像了(没授权)
win版本的安装太简单就不说了,一步步就OK了,这段时间开发环境都是linux,所以也顺手装下,再发个文记录下,服务大众吧
先说点Net程序员感兴趣的,很多人羡慕Python的交互式编程(好处就不用说了,不知道可以搜索下),其实借助Jupyter C#也是可以做到的,先贴张图:

感兴趣的可以自己摸索下,以后有机会咱们再聊聊集成环境系列:https://github.com/zabirauf/icsharp
步入正题吧:
Anaconda:https://www.anaconda.com/download/#linux 官方文档:https://conda.io/docs/user-guide/install/linux.html 国内下载:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh# 运行脚本 bash ./xxx.sh sudo ./Anaconda3-5.2.0-Linux-x86_64.sh![]()
Anaconda For Linux (附C#交互式编程的引入) # 有几个地方需要同意下,一般回车就默认是同意 回车继续![]()
Anaconda For Linux (附C#交互式编程的引入) 同意一下,他会告诉你安装的位置![]()
Anaconda For Linux (附C#交互式编程的引入) 安装完成,提醒你添加环境变量(vscode可以选择安装)![]()
Anaconda For Linux (附C#交互式编程的引入) 这个是安装前的python默认环境![]()
Anaconda For Linux (附C#交互式编程的引入) # 根据提示,添加环境变量(最新版本已经不用添加了) echo 'export PATH="/home/dnt/anaconda3/bin:$PATH"' >> ~/.bashrc # 更新一下 source ~/.bashrc 这是现在的环境变量文件(记得以前需要自己设置一下的,现在不需要了【vscode以前也需要设置调试配置,现在也不用了】)![]()
Anaconda For Linux (附C#交互式编程的引入) 打开就这样![]()
Anaconda For Linux (附C#交互式编程的引入) # 添加Anaconda的清华大学镜像 (免得以后安装东西很慢) 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 官方方法:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/![]()
Anaconda For Linux (附C#交互式编程的引入) ------------------------------------------------------ #说说卸载Anaconda rm -rf ~/anaconda3 (安装路径) rm -rf ~/.condarc ~/.conda ~/.continuum (隐藏文件,Ctrl+H可以看见)![]()
Anaconda For Linux (附C#交互式编程的引入) #记得删除刚才添加的环境变量 export PATH="/home/dnt/anaconda3/bin:$PATH"![]()
Anaconda For Linux (附C#交互式编程的引入)
运行Notebook测试一下:jupyter-notebook
交互式编程走起了(给看到最后的留一个福利:http://nbviewer.jupyter.org)![]()
Anaconda For Linux (附C#交互式编程的引入) ![]()
Anaconda For Linux (附C#交互式编程的引入)
附录:
普及一下~的基础知识(新手防坑用): 一图解决:~ ==》 /home/用户名![]()
Anaconda For Linux (附C#交互式编程的引入)
作者:毒逆天
出处:https://www.cnblogs.com/dotnetcrazy
打赏:<b>18i4JpL6g54yAPAefdtgqwRrZ43YJwAV5z</b>
本文版权归作者和博客园共有。欢迎转载,但必须保留此段声明,且在文章页面明显位置给出原文连接!