I'm learning python recently. And I use PyCharm as my editor running in a MacBook. The problem is when I type something like scrapy -V in my PyCharm terminal, it tells me that "zsh: command not found: scrapy", but when I launch my terminal outside PyCharm it works all right.
So I'm wondering if the path var is right. And then I tried echo $PATH in PyCharm terminal, it returns:
/usr/bin:/bin:/usr/sbin:/sbin
and the terminal outside PyCharm returns:
/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands
and I set shell path to: /bin/zsh
And by the way I'm IDEA too, but everything there works just fine, and the shell path is the same as what is in the PyCharm.
So, what is causing the path variable in my PyCharm terminal(zsh) to be wrong?