如何从WSL中删除Win10的路径 [英] How to remove the Win10's PATH from WSL

查看:417
本文介绍了如何从WSL中删除Win10的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win10中使用Windows子系统Linux(Ubuntu 18.04),并在其中安装了Maven. 此外,我之前在Win10中安装了一个Maven. 现在,当我在WSL中使用mvn compile时,它告诉我maven编译失败. 我使用which mvn并发现它引用了Win10中安装的Maven.

I use Windows Subsystem Linux(Ubuntu 18.04) in my Win10, and I install a Maven in it. Besides, I install a maven in Win10 before. Now when I used mvn compile in WSL, it told me that maven compile fail. I use which mvn and find that it references to the Maven installed in Win10.

此外,我运行env并发现Win10的路径已添加到WSL的路径中. 使用WSL时,我不想在Win10的路径中使用任何东西,该怎么办?

Besides, I run env and find that Win10's Path is added to the WSL's Path. I don't want to use any thing in Win10's Path when I use WSL, how should I do?

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆