Difference between revisions of "Brew install [email protected]"

From wikieduonline
Jump to navigation Jump to search
Line 33: Line 33:
  
 
== See also ==
 
== See also ==
 +
* {{Python3}}
 
* {{Python}}
 
* {{Python}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Revision as of 11:41, 18 October 2023

brew install [email protected]
Python has been installed as
 /Users/MY_USER/brew/opt/[email protected]/bin/python3


Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /Users/MY_USER/brew/opt/[email protected]/libexec/bin

You can install Python packages with
  /Users/MY_USER/brew/opt/[email protected]/bin/pip3 install <package>
They will install into the site-package directory
  /Users/MY_USER/brew/lib/python3.8/site-packages 

See: https://docs.brew.sh/Homebrew-and-Python

[email protected] is keg-only, which means it was not symlinked into /Users/MY_USER/brew,
because this is an alternate version of another formula.

If you need to have [email protected] first in your PATH, run:
  echo 'export PATH="/Users/MY_USER/brew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

For compilers to find [email protected] you may need to set:
  export LDFLAGS="-L/Users/MY_USER/brew/opt/[email protected]/lib" 

For pkg-config to find [email protected] you may need to set:
  export PKG_CONFIG_PATH="/Users/MY_USER/brew/opt/[email protected]/lib/pkgconfig"

Related

See also

Advertising: