自学是门手艺 环境安装笔记
自学是门手艺 环境安装笔记
已经注册github就不需要注册
已经在mac安装好git
这个笔记,列出了安装中出现的问题和解决办法
打开 https://github.com/selfteaching/the-craft-of-selfteaching 之后frok项目到自己的仓库中
![](https://img.haomeiwen.com/i3357352/96bfa83b63440dad.jpg)
frok到自己的仓库
![](https://img.haomeiwen.com/i3357352/a30a5b974fab6bd2.jpg)
在mac建立selfteaching文件夹,交将项目clone到本地
![](https://img.haomeiwen.com/i3357352/569c7b50cbdaa0b2.jpg)
![](https://img.haomeiwen.com/i3357352/45b810280a56af33.jpg)
Jupyterlab 的安装与配置,打开https://github.com/qinfeng8848/the-craft-of-selfteaching/blob/master/T-appendix.jupyter-installation-and-setup.ipynb ,按说明操作
下载安装文件
![](https://img.haomeiwen.com/i3357352/c827c167db954399.jpg)
出错之后,使用brew安装wget
![](https://img.haomeiwen.com/i3357352/cb4699753372ee01.jpg)
使用wget下载,太慢了,
wget https://repo.anaconda.com/archive/Anaconda3-2018.12-MacOSX-x86_64.sh
./Anaconda3-2018.12-MacOSX-x86_64.sh
![](https://img.haomeiwen.com/i3357352/0713c27e54761ed0.jpg)
于是打开网网直接下载 https://www.anaconda.com/distribution/#macos
![](https://img.haomeiwen.com/i3357352/4fdfaac5a00b3966.jpg)
继续用命令方式安装 ,提示没有权限
![](https://img.haomeiwen.com/i3357352/34e4b7ca26d58baf.jpg)
google 到这个网站 https://www.quora.com/Why-do-I-get-a-permission-denied-message-when-I-install-Anaconda-2-4-4-0-on-the-Mac, 使用chmod 添加权限
![](https://img.haomeiwen.com/i3357352/67c8f0b2d881a9f4.jpg)
开始安装
![](https://img.haomeiwen.com/i3357352/f66a3f7100f13ef5.jpg)
一直按ENTER键,看完授权文件,直到需要你接受授权许可,输入yes
![](https://img.haomeiwen.com/i3357352/7cb508a11a31992f.jpg)
安装到默认文件夹,需要按Enter
![](https://img.haomeiwen.com/i3357352/6c12e52435bb0212.jpg)
安装的东西比较多,时间会比较长,如果没有反应,请等一等
![](https://img.haomeiwen.com/i3357352/3fc8723e72e24dcd.jpg)
出现问你是否安装vscode就会停住,输入yes安装
![](https://img.haomeiwen.com/i3357352/474bf62316ee8cd3.jpg)
我已经安装过vscode,过程很快完成
![](https://img.haomeiwen.com/i3357352/4114f8d80718b903.jpg)
准备安装 使用conda安装
zsh: command not found: conda
![](https://img.haomeiwen.com/i3357352/3bc49c8552c3e3a0.jpg)
google 之后 https://stackoverflow.com/questions/31615322/zsh-conda-pip-installs-command-not-found
atom ~/.zshrc 使用atom编辑修改.zshrc文件
![](https://img.haomeiwen.com/i3357352/be884de3755c228b.jpg)
在第6行加一条:export PATH=/Users/qf/anaconda3/bin:$PATH /Users/qf/anaconda3/bin是anaconda安装目录
改了之后,需要把终端重启一下
![](https://img.haomeiwen.com/i3357352/ca0853944c0dafd5.jpg)
运行conda updata conda 按提示输入y
![](https://img.haomeiwen.com/i3357352/2c83055a0a476f1b.jpg)
canda安装都很顺利,没有报错,有提示就按y
conda update conda
conda update anaconda
conda install -c conda-forge nodejs
conda install -c conda-forge jupyterlab
![](https://img.haomeiwen.com/i3357352/eb8170bf57e5cbae.jpg)
安装完毕之后,可以看看各个你将要用到的可执行命令都在什么地方,用 which
命令:
![](https://img.haomeiwen.com/i3357352/f1fb47fea39f4cbb.jpg)
第一次启动 Jupyter lab
![](https://img.haomeiwen.com/i3357352/913799f0cf992d81.jpg)
成功后会在浏览器打开Jupyter lab
![](https://img.haomeiwen.com/i3357352/91aafbd43bb77be7.jpg)
在书的目录打开Jupyter lab
![](https://img.haomeiwen.com/i3357352/52b18be4eca42da8.jpg)
lab改成tree 成功打开书了
![](https://img.haomeiwen.com/i3357352/84a0ddde23f7c1f3.jpg)
配置 Jupyter lab
![](https://img.haomeiwen.com/i3357352/96d1fc2142f86d9b.jpg)
vscode 修改配置的效果
![](https://img.haomeiwen.com/i3357352/956bddae7792a13c.jpg)
样式
![](https://img.haomeiwen.com/i3357352/21e420d24ac69ff6.jpg)
最后的效果
![](https://img.haomeiwen.com/i3357352/011d5da09d34837e.jpg)
`