如果在windows和wsl中都安装了python, 那么由于wsl的互交互特性, pienv的运行就会不太正常

以下是禁用互交互的步骤

WSL的终端中输入:

echo "[interop]\nenabled=false\nappendWindowsPath=false" | sudo tee /etc/wsl.conf

Powershell(以管理员身份运行)中输入: (以重启wsl)

net stop LxssManager
net start LxssManager

如果已知distro名, 可用wsl --terminate <distro名>终止特定的wsl distro

效果如下: