简体   繁体   中英

Homebrew: Packages are installed for wrong python version (mac)

Homebrew is installing the package I need for python 2.7, which is the default version that comes with Mac, but I need it to be installed for python 3.4. How do I do this?

Try pip3 install versus just pip install .

Look at the versions:

pip --version
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)

pip3 --version                                                             
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)

Listing the executable for python 3.4 before python 2.7 in your PATH might help if you haven't tried it already. Otherwise maybe something here might help? How to make Mac OS use the python installed by Homebrew

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM