[Python] Building an environment with Anaconda [Mac]

Beforehand

Mac OS X El Capitan or later Install and update Xcode and Homebrew

Discord and separation between Anaconda and Homebrew

(In the first place, you need to be careful when two or more package management systems coexist.) Download and install Anaconda. If you check .bash_profile

#added by Anaconda3 4.0.0 installer
export PATH="/Users/*User name*/anaconda/bin:$PATH"

At this rate, Homebrew and Anaconda environments will be batting, so comment them out.

#export PATH="/Users/*User name*/anaconda/bin:$PATH"

Then add the following function to ~ / .bashrc.

#!/usr/local/bin/bash
function enter_conda()
{
   source /Users/*User name*/anaconda/bin/activate root
}
function quit_conda()
{
   source /Users/*User name*/anaconda/bin/deactivate
}

After that, Python managed by Anaconda can be used in root mode by executing ʻenter_conda (). Exit root mode with quit_conda ()`.

Now Anaconda will not interfere with Homebrew and Homebrew will not interfere with Anaconda.

Recommended Posts

[Python] Building an environment with Anaconda [Mac]
Building an Anaconda environment for Python with pyenv
Build Python environment with Anaconda on Mac
Install Python environment with Anaconda
Building an environment for executing Python scripts (for mac)
Building a Python environment with WLS2 + Anaconda + PyCharm
Building an environment for natural language processing with Python
Building a Python environment on Mac
Error when building mac python environment
Building a virtual environment with Python 3
Notes from installing Homebrew to building an Anaconda environment for Python with pyenv
Let's get started with Python ~ Building an environment on Windows 10 ~
[Pyenv] Building a python environment with ubuntu 16.04
Change Python 64bit environment to 32bit environment with Anaconda
Building a Python3 environment with Amazon Linux2
[Python] Building an environment for competitive programming with Atom (input () can be used!) [Mac]
Note when creating an environment with python
[Python] Create a virtual environment with Anaconda
Building a Python 3.6 environment with Windows + PowerShell
[Mac] Building a virtual environment for Python
Build a Python environment on your Mac with Anaconda and PyCharm
Use Python 3.8 with Anaconda
Python environment with docker-compose
Mac environment construction Python
Virtual environment with Python 3.6
Building a python environment with virtualenv and direnv
Building an environment that uses Python in Eclipse
Various commands for building an environment with Apache
Building an environment for matplotlib + cartopy on Mac
Think about building a Python 3 environment in a Mac environment
Introduction to Python "Re" 1 Building an execution environment
Use Python in Anaconda environment with VS Code
Try building an environment for MayaPython with VisualStudioCode
From Python environment construction to virtual environment construction with anaconda
[Definitive Edition] Building an environment for learning "machine learning" using Python on Mac
Python + Anaconda + Pycharm environment construction
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Create an environment with virtualenv
Recommendation of building a portable Python environment with conda
Manage python environment with virtualenv
Python3 + Django ~ Mac ~ with Apache
Build an Anaconda virtual environment
Building an environment for "Tello_Video" on Mac OS X
Creating an egg with python
Build python3 environment with ubuntu 16.04
Python environment construction For Mac
Anaconda3 python environment construction procedure
Prepare python3 environment with Docker
Build python environment with direnv
Building an environment to comply with the Python coding standard (PEP8) with Eclipse + PyDev
Building a Python virtual environment
Python development environment with Windows + Anaconda3 + Visual Studio Code
conda memorandum: Building a Python environment with supercomputer ITO
Building a Python environment for programming beginners (Mac OS)
Building a Python virtual environment
Using OpenCV with Python @Mac
Building an environment to use CaboCha with google colaboratory
I tried to build an environment for machine learning with Python (Mac OS X)
[Python] Anaconda environment construction (installation, startup, virtual environment, package management) Mac environment
Building a Python environment on a Mac and using Jupyter lab
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)