brew install zoidbergwill/python/ Or brew tap zoidbergwill/python and then brew install . brew install python35 pyenv install –list
We don’t ever install to pip3, pyvenv, or python3, since we don’t know which Python version you want to use in general. Eventually I hope to add support for that somehow, though using pyenv might be a better solution.
Sets theglobalversionof Python to be used in all shells by writing theversion name tothe ~/.pyenv/versionfile. This version can be overridden byan application-specific .python-version file, orby setting the PYENV_VERSION environment variable. pyenv local
Sets alocal application-specific Python version by writing theversion name toa .python-versionfile inthe current directory. This version overrides theglobalversion, and can be overridden itself by setting the PYENV_VERSION environment variableorwiththe pyenv shellcommand. pyenv shell
Sets ashell-specific Python version by setting the PYENV_VERSION environment variablein your shell. This version overrides application-specific versions andtheglobalversion.
PYTHONPATH
1 2
# 报错Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x! ... unset PYTHONPATH 可以解决, 检查PYTHONPATH路径