最近安装graph_tool走了很多弯路,特此记录一下
win+R 输入cmd打开powershell安装wsl2,输入:
wsl --install
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
重启电脑
在任意盘创建文件夹,并进入此文件夹,打开powershell下载ubuntu20.04
Invoke-WebRequest -Uri https://wsldownload.azureedge.net/Ubuntu_2004.2020.424.0_x64.appx -OutFile Ubuntu20.04.appx -UseBasicParsing
下载完执行
Rename-Item .\Ubuntu20.04.appx Ubuntu.zip
Expand-Archive .\Ubuntu.zip -Verbose
cd .\Ubuntu\
.\ubuntu2004.exe
打开ubuntu20.04换源,输入
wget https://gitee.com/lin-xi-269/tools/raw/master/os/QHubuntu20.04 && bash QHubuntu20.04

本文详细记录了在Windows上通过WSL2安装Ubuntu20.04,然后安装Anaconda3,创建并激活虚拟环境,安装Graph_Tool,最后设置Jupyter Notebook的过程,包括conda命令的使用和环境配置。
780

被折叠的 条评论
为什么被折叠?



