自學(xué)是門手藝 環(huán)境安裝筆記

自學(xué)是門手藝 環(huán)境安裝筆記

已經(jīng)注冊github就不需要注冊

已經(jīng)在mac安裝好git

這個筆記,列出了安裝中出現(xiàn)的問題和解決辦法

打開 https://github.com/selfteaching/the-craft-of-selfteaching 之后frok項(xiàng)目到自己的倉庫中

image

frok到自己的倉庫

image

在mac建立selfteaching文件夾,交將項(xiàng)目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

于是打開網(wǎng)網(wǎng)直接下載 https://www.anaconda.com/distribution/#macos

image

繼續(xù)用命令方式安裝 ,提示沒有權(quán)限

image

google 到這個網(wǎng)站 https://www.quora.com/Why-do-I-get-a-permission-denied-message-when-I-install-Anaconda-2-4-4-0-on-the-Mac, 使用chmod 添加權(quán)限

image

開始安裝

image

一直按ENTER鍵,看完授權(quán)文件,直到需要你接受授權(quán)許可,輸入yes

image

安裝到默認(rèn)文件夾,需要按Enter

image

安裝的東西比較多,時間會比較長,如果沒有反應(yīng),請等一等

image

出現(xiàn)問你是否安裝vscode就會停住,輸入yes安裝

image

我已經(jīng)安裝過vscode,過程很快完成

image

準(zhǔn)備安裝 使用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

運(yùn)行conda updata conda 按提示輸入y

image

canda安裝都很順利,沒有報(bào)錯,有提示就按y

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

安裝完畢之后,可以看看各個你將要用到的可執(zhí)行命令都在什么地方,用 which 命令:

image

第一次啟動 Jupyter lab

image

成功后會在瀏覽器打開Jupyter lab

image

在書的目錄打開Jupyter lab

image

lab改成tree 成功打開書了

image

配置 Jupyter lab

image

vscode 修改配置的效果

image

樣式

image

最后的效果

image

`

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容