Zulip Chat Archive

Stream: new members

Topic: have trouble running leanproject


Alex Zhang (Dec 02 2021 at 21:23):

I am trying to use Lean on one of my laptops (Win 10) in VS code.
But leanproject new my_project fails with the message bash: leanproject: command not found.
Could anyone please let me know what might be the problem?

Kevin Buzzard (Dec 02 2021 at 21:24):

You didn't follow the instructions to the letter :-)

Kevin Buzzard (Dec 02 2021 at 21:25):

Which instruction you failed to do -- who knows!

Alex Zhang (Dec 02 2021 at 21:25):

I followed the instruction and reinstalled everything actually. It's quite weird this problem is still there

Kevin Buzzard (Dec 02 2021 at 21:26):

Your situation is impossible to debug because there are many reasons why it might not work

Kevin Buzzard (Dec 02 2021 at 21:26):

Are you using git bash?

Kevin Buzzard (Dec 02 2021 at 21:27):

is leanproject on your system but not in your path, or not on your system?

Kevin Buzzard (Dec 02 2021 at 21:27):

did you try turning it off and on again?

Alex Zhang (Dec 02 2021 at 21:31):

Yes, git bash.
I will try to restart my laptop..

Eric Wieser (Dec 02 2021 at 21:41):

How did you install leanproject?

Alex Zhang (Dec 02 2021 at 21:45):

It seems OK now after I restarted my computer......
(I just tried to restart VS code and the terminal before, which didn't work)

Yakov Pechersky (Dec 02 2021 at 22:48):

Sounds like a shell restart problem. Something (likely pip) added leanproject to your shell's PATH but since you hadn't restarted the shell, it wasn't being found. Restarting the computer was an intense way of restarting the shell.

Huỳnh Trần Khanh (Dec 03 2021 at 05:15):

generally source ~/.profile does the trick. you can also log out and log in again, you don't need to restart your computer


Last updated: Dec 20 2023 at 11:08 UTC