tomerfiliba / plumbum

Plumbum: Shell Combinators
https://plumbum.readthedocs.io
MIT License
2.81k stars 183 forks source link

ImportError: cannot import name 'git' from 'plumbum.cmd' #639

Closed zxm14 closed 11 months ago

zxm14 commented 1 year ago

Hi, I'm new to plumbum and GitHub. When I initialized a copier folder, it turned out to be this

from plumbum.cmd import git ImportError: cannot import name 'git' from 'plumbum.cmd' (D:\Program Files\Python310\lib\site-packages\plumbum\cmd.py)

Is it really able to import git from plumbum.cmd? What can i do to solve these problem?

sisp commented 1 year ago

Is Git installed on your machine?

henryiii commented 11 months ago

I don't think we can improve the error message with the import shortcut, even in Python 3.11+. If you can't import X from plumbum.cmd that means X is not installed on your machine.