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

Cannot run "gpte" on macOS 14.2.1 -- zsh: command not found: gpte #1271

Open
laphlaw opened this issue Oct 3, 2024 · 1 comment
Open

Cannot run "gpte" on macOS 14.2.1 -- zsh: command not found: gpte #1271

laphlaw opened this issue Oct 3, 2024 · 1 comment
Labels
bug Something isn't working triage Interesting but stale issue. Will be close if inactive for 3 more days after label added.

Comments

@laphlaw
Copy link

laphlaw commented Oct 3, 2024

I installed via:
python3 -m pip install gpt-engineer
(the default python is python2 on macOS, so I used python3)

neil@neils-MacBook-Pro ~ % pip3 show gpt-engineer|grep Location
Location: /Users/neil/Library/Python/3.9/lib/python/site-packages

I verified my path includes the site-packages of python 3.9:
export PATH=/Users/neil/Library/Python/3.9/lib/python/site-packages:$PATH

I restarted my terminal
Still, every time I get "zsh: command not found: gpte"

@laphlaw laphlaw added bug Something isn't working triage Interesting but stale issue. Will be close if inactive for 3 more days after label added. labels Oct 3, 2024
@k1lgor
Copy link
Contributor

k1lgor commented Oct 8, 2024

Hi @laphlaw! It seems that if you're using the command:

export PATH=/Users/neil/Library/Python/3.9/lib/python/site-packages:$PATH

and then restarting your terminal, the PATH variable isn't retaining the Python path. When you use export directly in the terminal, it only applies to the current session. Once you restart or open a new terminal, the setting is lost, which is why you're encountering the issue.

To make the change permanent, you should add that export command to your .zshrc file. This way, the Python path will automatically be set every time you open a new terminal or restart it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Interesting but stale issue. Will be close if inactive for 3 more days after label added.
Projects
None yet
Development

No branches or pull requests

2 participants