Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command not found: fastapi-codegen for Mac #355

Open
jung-wan-kim opened this issue Jun 9, 2023 · 1 comment
Open

command not found: fastapi-codegen for Mac #355

jung-wan-kim opened this issue Jun 9, 2023 · 1 comment

Comments

@jung-wan-kim
Copy link

My mac doesn't found pip3 package fastapi-codegen

I was already install fastapi-code-generate, but doesn't working command.

install commad

pip3 install fastapi-code-generator

execute command

fastapi-codegen --input api.yaml --output app

result

zsh: command not found: fastapi-codegen

Am I something wrong?

@yyamano
Copy link
Contributor

yyamano commented Aug 10, 2023

@jung-wan-kim You might need rehash.

https://wiki.archlinux.org/title/zsh#Tips_and_tricks

Typically, compinit will not automatically find new executables in the $PATH. For example, after you install a new package, the files in /usr/bin/ would not be immediately or automatically included in the completion. Thus, to have these new executables included, one would run:

$ rehash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants