bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

'pipreqs' is not recognized as an internal or external command, operable program or batch file. #311

Open yashasvibmishra opened 2 years ago

yashasvibmishra commented 2 years ago

I've tried everything, ranging from adding it through the path by editing system variables, to reinstalling pip and python but nothing seems to work. Could anyone please tell me how to fix this error?

briand-abl commented 2 years ago

I had this issue as well - I'm running pip from a windows cmd prompt. To fix it, I had to run the cmd prompt as administrator, uninstall pipreqs, then run "pip install pipreqs" again. After that, it was recognized. HTH

FrankXu1 commented 1 year ago

I find a good solution. You go to the root path of your project from cmd first. Run python -m pipreqs.pipreqs ./ --encoding=utf-8 It works for me