To upgrade PIP, run the following command: pip install -upgrade pip You will see an output similar to below, indicating that PIP has been successfully upgraded to the latest version. Add the following lines: echo 'eval "$(pyenv init -path)"' > ~/.zprofileĮcho 'eval "$(pyenv init -)"' > ~/. PIP is a Python package itself and thus it can also be upgraded. Open Terminal, then type in: brew install openssl readline sqlite3 xz zlibįinally, update the shell profile configuration, i.e ~/.zshrc if your default shell is ZSH. To make pyenv work, install build dependencies through Homebrew. The Homebrew Python documentation recommends pyenv to manage Python environments. You can add Python and the pip directory to the PATH in a bit. You lose control over “site-packages” and all the PIP packages that you had installed might become inaccessible. If you’ve just installed Python, you may want to rerun your Python installer and make sure you check the box Add Python 3.6 to PATH. For example, the "youtube-dl" package uses Python as its dependency, the Python package may get updated as and when needed. Many people prefer to use Homebrew to install software packages, but should you use it for Python development? The problem with using Homebrew Python is that it’s not in your control. If you’re working on multiple Python projects, the default location, which needs sudo privileges, creates hurdles.
0 Comments
Leave a Reply. |