

But, the benefits are having the latest Python release and some protection from hosing your system if things go badly wrong. You take on the responsibility to make sure you're using the copy of Python you intend. Installing a separate copy of Python is a popular option, even though Python already comes with MacOS. To deactivate the environment: $ deactivate You can use a project folder or any folder: python3 -m venv venv

Pip install pymongo upgrade#
OLD: You need only to upgrade pip, but before that you need create a virtual environment to work with Python 3. When you install packages with pip3 they will be separated from python2. NEW 2019: now to use pip version 3, use pip3, or you can execute: python3, to use version 3. If you install python3, pip will be installed automatically. WARNING: for a modern macOS (2019) this can install python3, and for python2 you really need to do: brew install python3: brew install python3 Anyway, it's better to manage it with homebrew, you must install it before: MacOS comes with python2, but not with pip. This python (v3) install pip3, in order to use only 'pip', add an alias: sudo nano ~/.bash_profile

mkdir homebrew & curl -L | tar xz -strip 1 -C homebrew
Pip install pymongo update#
✅ UPDATE (Jan 2019): METHOD #2: Two line solution -Įasy_install has been deprecated. QuickTip: How Do I Install pip on macOS or OS X? Let me know if you have any problems installing pip this way. sudo easy_install pipĪfter that, pip will be installed and you'll be able to use it for installing other packages. ℹ️ Now, all you have to do is run the following command. This also means that you already have access to easy_install considering you are using macOS/OSX. If this command returns a version number that means Python exists. But to make sure that you have Python installed open the terminal and run the following command. ⚡️ OK, I read the solutions given above, but here's an EASY solution to install pip. Check Method #2 below for preferred installation! OR the following if you have it installed as python3 curl | python3įOLLOWING USED TO WORK in 2019 and beforeĪll you had to do was: sudo easy_install pipĢ019: ⚠️ easy_install has been deprecated. Run the following command for Python v3 curl | python
Pip install pymongo mac#
Run the following command for Python v2.7 (default on mac as of 2021) curl | python
