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

zsh: command not found: pipreqs #215

Closed msjahid closed 3 years ago

okay-scam commented 4 years ago

Try this https://github.com/bndr/pipreqs/issues/69#issuecomment-298758892

unknown989 commented 4 years ago

if you're in windows ,try the following: set PATH=%PATH%;C:/path/to/python if linux: export PATH=/path/to/python:$PATH

alan-barzilay commented 3 years ago

The issue seems to be resolved, feel free to reopen it if there is still a problem

RNCTX commented 3 years ago

Broken on OSX Big Sur (11.3) today, using bash not ZSH...

$ pip install pipreqs
Collecting pipreqs
  Downloading pipreqs-0.4.10-py2.py3-none-any.whl (25 kB)
Collecting docopt
  Downloading docopt-0.6.2.tar.gz (25 kB)
Collecting yarg
  Downloading yarg-0.1.9-py2.py3-none-any.whl (19 kB)
Requirement already satisfied: requests in /Users/robertclayton/.zappadev/lib/python3.6/site-packages (from yarg->pipreqs) (2.22.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Users/robertclayton/.zappadev/lib/python3.6/site-packages (from requests->yarg->pipreqs) (1.25.7)
Requirement already satisfied: certifi>=2017.4.17 in /Users/robertclayton/.zappadev/lib/python3.6/site-packages (from requests->yarg->pipreqs) (2019.11.28)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Users/robertclayton/.zappadev/lib/python3.6/site-packages (from requests->yarg->pipreqs) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /Users/robertclayton/.zappadev/lib/python3.6/site-packages (from requests->yarg->pipreqs) (2.8)
Building wheels for collected packages: docopt
  Building wheel for docopt (setup.py) ... done
  Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13704 sha256=a1044dbd9db87e6596675c3fb8ab233346daec8b952ba95719f1edd75d5184d7
  Stored in directory: /Users/robertclayton/Library/Caches/pip/wheels/3f/2a/fa/4d7a888e69774d5e6e855d190a8a51b357d77cc05eb1c097c9
Successfully built docopt
Installing collected packages: yarg, docopt, pipreqs
Successfully installed docopt-0.6.2 pipreqs-0.4.10 yarg-0.1.9
(.zappadev) robertclayton@Roberts-MacBook ~/Dropbox/zappadev $ pipreqs
-bash: pipreqs: command not found
Sahil-B07 commented 1 year ago

For OSX users

Make sure u have installed pipreqs successfully on your machine using: pip3 show pipreqs this will show u the info about pipreqs, including the location/path of pipreqs

echo PATH this will show your current paths

add the pipreqs path if not present using 1 vim ~/.zshrc 2 export PATH=$PATH:/path/to/pipreqs

This works for me, hope this works for all.

Or else @RNCTX after try above steps do in the current dir pipreqs .