自学是门手艺 环境安装笔记

2019-03-16  本文已影响0人  秦生生

自学是门手艺 环境安装笔记

已经注册github就不需要注册

已经在mac安装好git

这个笔记,列出了安装中出现的问题和解决办法

打开 https://github.com/selfteaching/the-craft-of-selfteaching 之后frok项目到自己的仓库中

image

frok到自己的仓库

image

在mac建立selfteaching文件夹,交将项目clone到本地

image image

Jupyterlab 的安装与配置,打开https://github.com/qinfeng8848/the-craft-of-selfteaching/blob/master/T-appendix.jupyter-installation-and-setup.ipynb ,按说明操作

下载安装文件

image

出错之后,使用brew安装wget

image

使用wget下载,太慢了,

wget https://repo.anaconda.com/archive/Anaconda3-2018.12-MacOSX-x86_64.sh
./Anaconda3-2018.12-MacOSX-x86_64.sh
image

于是打开网网直接下载 https://www.anaconda.com/distribution/#macos

image

继续用命令方式安装 ,提示没有权限

image

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 添加权限

image

开始安装

image

一直按ENTER键,看完授权文件,直到需要你接受授权许可,输入yes

image

安装到默认文件夹,需要按Enter

image

安装的东西比较多,时间会比较长,如果没有反应,请等一等

image

出现问你是否安装vscode就会停住,输入yes安装

image

我已经安装过vscode,过程很快完成

image

准备安装 使用conda安装

zsh: command not found: conda

image

google 之后 https://stackoverflow.com/questions/31615322/zsh-conda-pip-installs-command-not-found

atom ~/.zshrc 使用atom编辑修改.zshrc文件

image

在第6行加一条:export PATH=/Users/qf/anaconda3/bin:$PATH /Users/qf/anaconda3/bin是anaconda安装目录

改了之后,需要把终端重启一下

image

运行conda updata conda 按提示输入y

image

canda安装都很顺利,没有报错,有提示就按y

conda update conda
conda update anaconda
conda install -c conda-forge nodejs
conda install -c conda-forge jupyterlab
image

安装完毕之后,可以看看各个你将要用到的可执行命令都在什么地方,用 which 命令:

image

第一次启动 Jupyter lab

image

成功后会在浏览器打开Jupyter lab

image

在书的目录打开Jupyter lab

image

lab改成tree 成功打开书了

image

配置 Jupyter lab

image

vscode 修改配置的效果

image

样式

image

最后的效果

image

`

上一篇下一篇

猜你喜欢

热点阅读