![]() ![]() Add the following lines: echo 'eval "$(pyenv init -path)"' > ~/.zprofileĮcho 'eval "$(pyenv init -)"' > ~/. A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide. ![]() Read the pip install guide Run a TensorFlow container The TensorFlow Docker images are already configured to run TensorFlow. Official packages available for Ubuntu, Windows, and macOS. TensorFlow 2 packages require a pip version >19.0 (or >20.3 for macOS). 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. Starting with Python 3.4, it is included by default with the Python binary installers. Download a package Install TensorFlow with Python's pip package manager. ![]() To make pyenv work, install build dependencies through Homebrew. The Homebrew Python documentation recommends pyenv to manage Python environments. You lose control over “site-packages” and all the PIP packages that you had installed might become inaccessible. 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. |