win10安装graph_tool,在jupyter notebook运行代码

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

最近安装graph_tool走了很多弯路,特此记录一下

1.​​​​​​安装wsl2 和Ubuntu20.04

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
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值