![]() You may also need to do the following to make sure the pyenv python will be executed instead of the Mac default one: eval "$(pyenv init -path)" Then, check the python versions installed: $ pyenv versions system 3.7.9 * 3.8.1 (set by /Users/harrywang/.pyenv/version) 3.9.0 Set the global python version: $ pyenv global 3.8.1 Install a specific python version (choose from the list above): pyenv install 3.8.1 It’s much easier to manage different versions of python using pyenv ( ), which you can install using: brew update brew install pyenvĬheck the different python versions you can install: pyenv install -list usr/bin/ruby -e "$(curl -fsSL )" Setup Python This is how I set up Mac for Python development and data analysis. ![]() “Close-up of lines of code on a computer screen” by Ilya Pavlov on Unsplash
0 Comments
Leave a Reply. |