Wsl 全称 Windows Subsystem for Linux,适用于 Linux 的 Windows 子系统可让开发人员直接在 Windows 上按原样运行 GNU/Linux 环境(包括大多数命令行工具、实用工具和应用程序)。与传统的虚拟机或双系统方式安装linux相比,开销更小、安装和配置成本更低、可以同时无缝拥有windows的易用性和linux的开发环境,非常适合linux入门。
当你某天发现wsl不满足的你的需求,需要正经的linux系统。
0x06为什么要使用linux
当你想了解linux,意思是你不满足于使用现有的开发好的软件,想要成为一名开发者,You can code. They cannot. That is pretty damn cool.
安装Anaconda3 Anaconda | Anaconda Distribution sh Anaconda3-2022.10-Linux-x86_64.sh
建议 执行conda init
by running conda init? [yes|no]
[no] >>> yes
按错你需要手动复制这块代码到~/.bashrc
>>> conda initialize >>>
!! Contents within this block are managed by ‘conda init’ !!
__conda_setup=“('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ ? -eq 0 ]; then
eval “$__conda_setup”
else
if [ -f “/root/anaconda3/etc/profile.d/conda.sh” ]; then
. “/root/anaconda3/etc/profile.d/conda.sh”
else
export PATH=”/root/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
<<< conda initialize <<<
重新开一个bash窗口,你就有了python
(base) root@local:~# which python
/root/anaconda3/bin/python