自学学习0

Jupyterlab 的安装与配置
下面记录一些通过文中还需额外安装的步骤
wget在macOS安装
wget在安装的时候不隶属于root用户,所以,需要执行下面的命令
chown :Linux 中用来改变某个文件的属主的命令,将某个“资源”的访问权限给予别人。
-R : 处理指定目录以及其子目录下的所有文件。
whoami:显示自身用户名。

sudo chown -R $(whoami) /usr/local/sbin

Homebrew安装wget

~/Downloads ⮀ brew install wget #安装wget
==> Installing dependencies for wget: gettext, libunistring, libidn2 and openssl
==> Installing wget dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.19.8.1.high_sierra.bottle.tar.gz
==> Caveats
gettext is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

If you need to have gettext first in your PATH run:
  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc

For compilers to find gettext you may need to set:
  export LDFLAGS="-L/usr/local/opt/gettext/lib"
  export CPPFLAGS="-I/usr/local/opt/gettext/include"

==> Summary
  /usr/local/Cellar/gettext/0.19.8.1: 1,935 files, 16.9MB
==> Installing wget dependency: libunistring
==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libunistring-0.9.10.high_sierra.bottle.tar.gz
  /usr/local/Cellar/libunistring/0.9.10: 54 files, 4.4MB
==> Installing wget dependency: libidn2
==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.1.1a.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libidn2-2.1.1a.high_sierra.bottle.tar.gz
  /usr/local/Cellar/libidn2/2.1.1a: 69 files, 691.6KB
==> Installing wget dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2r.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2r.high_sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> Summary
  /usr/local/Cellar/openssl/1.0.2r: 1,795 files, 12.1MB
==> Installing wget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.20.1_4.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wget-1.20.1_4.high_sierra.bottle.tar.gz
  /usr/local/Cellar/wget/1.20.1_4: 49 files, 3.9MB
gettext is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

If you need to have gettext first in your PATH run:
  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc

For compilers to find gettext you may need to set:
  export LDFLAGS="-L/usr/local/opt/gettext/lib"
  export CPPFLAGS="-I/usr/local/opt/gettext/include"

==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

Anaconda下载

 ~/Downloads ⮀ wget https://repo.anaconda.com/archive/Anaconda3-2018.12-MacOSX-x86_64.sh
-- https://repo.anaconda.com/archive/Anaconda3-2018.12-MacOSX-x86_64.sh
已保存 “Anaconda3-2018.12-MacOSX-x86_64.sh” )

直接安装Anaconda并未成功,原因是执行 ./Anaconda3-2018.12-MacOSX-x86_64.sh的时候,用户没有权限,所以才出现这个错误,需要用chmod修改一下权限命令:
chmod是权限管理命令change the permissions mode of a file的缩写,Linux 中用来改变某个文件的访问模式的命令。
u代表所有者。
x代表执行权限。
'+' 表示增加权限。
chmod u+x file.sh 就表示对当前目录下的file.sh文件的所有者增加可执行权限。

~/Downloads ⮀ ./Anaconda3-2018.12-MacOSX-x86_64.sh
zsh: permission denied: ./Anaconda3-2018.12-MacOSX-x86_64.sh
 ✘  ~/Downloads ⮀ chmod u+x *.sh
~/Downloads ⮀

Anaconda安装

 ~/Downloads ⮀ ./Anaconda3-2018.12-MacOSX-x86_64.sh

Welcome to Anaconda3 2018.12

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue

安装完Anaconda,需要设置如下命令启用anaconda 里的命令

echo 'export PATH="/Users/anaconda3/bin:$PATH"' >> ~/.zshrc

有用的conda mac安装参考
MAC 安装zsh 后, 部分bash 指令失效问题解决参考
Visual Studio Code on macOS

你可能感兴趣的:(自学学习0)