profile
viewpoint

Ask questionsbrew install httpie will install python too instead of using my existing pyhton

Checklist

  • [x] I've searched for similar issues.
  • [x] I'm using the the latest version of HTTPie.

What are the steps to reproduce the problem?

  1. MacOS 11.2.3 (Big Sur) has python 3.8 installed and most of my projects use python 3.8
  2. I installed httpie using brew install httpie then brew installed python 3.9 as well and updated my system python3 to that.
  3. I know it is not necessarily the htppie's bug but is it possbile to use my system python 3.8 instead of install 3.9 (and without my notice at all) ?

Thanks

httpie/httpie

Answer questions qiulang

Hi I reproduced the case, please check:

lang@localhost ~ % which python3
/usr/bin/python3
lang@localhost ~ % python3 --version
Python 3.8.2
lang@localhost ~ % brew list
==> Formulae
autoconf	m4		node-build	openssl@1.1	pyenv		sqlite
gdbm		mpdecimal	nodenv		pkg-config	readline	xz
lang@localhost ~ % brew install httpie
...
==> Caveats
==> python@3.9
Python has been installed as
 /usr/local/bin/python3

Then

lang@localhost ~ % python3 --version
Python 3.9.2
//I think it is because the PATH setting
lang@localhost ~ % echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List