Python3 should already be installed since Mac OS X High Sierra, but pip3 may not yet be installed.
On Mac OS you should be able to launch a Terminal, which looks like this…
Ensure Python3 is Available
# Linux/macOS python3 -m pip install -U discord.py # Windows py -3 -m pip install -U discord.py Otherwise to get voice support you should run the following command: # Linux/macOS python3 -m pip install -U 'discord.pyvoice' # Windows py -3 -m pip install -U discord.py voice To install the development version, do the following.
After it has launched, type the following into the Terminal and press Enter
Checking if PIP is added to your PATH variable. Let’s start by finding out where we stand. If installing using pip install -user, you must add the user-level bin directory to your PATH environment variable in order to launch jupyter lab. To run the notebook, run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows): jupyter notebook See Running the Notebook for more details. Installing Jupyter Notebook. If you have Command Line Tools installed, the installation of pip is very simple. Installation # install command line tools (if not installed) $ xcode-select -install # install pip via easyinstall $ sudo easyinstall pip # show current pip version (optional) $ pip -version.
python3
If python3 is installed this should launch the python shell, and take you to an interactive python prompt which looks like >>> where you can type 4+4, and press Enter to see 8. For example…

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3) on darwin
Type “help”, “copyright”, “credits” or “license” for more information
>>> 4+4
8
If it launched a python shell as expected, press CTRL+D to exit the shell.
If python3 is not installed, the shell will not launch and it will instead report…
-bash: python3: command not found
If you don’t yet have python3, you can download a Mac OS installer for python 3.6.5 by clicking here.
Ensure Pip3 is Available
Once you have python3 installed, type the following into Terminal and press Enter.
pip3 --version
This should show the version of pip3 like…
pip 9.0.3 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (python 3.6)
If you see a version report, keep the console window open and proceed to configuring your pip3 install using Terminal.
If pip3 is not installed you will see
-bash: pip3: command not found
Use python3 to install pip3 by copy-pasting the command lines below into the Mac OS Terminal prompt, pressing Enter each time…
curl -O https://bootstrap.pypa.io/get-pip.py
(This command line uses the curl downloader to download a script file to the current directory)
sudo python3 get-pip.py
(This command line uses sudo to run the downloaded script with root privileges)
After the script completes, keep the console window open and proceed to configuring your pip3 install using Terminal
Pip and virtualenv on a Mac
Written by Art, June 18, 2017
Pip Command For Mac Shortcut
Install pip
Pip (Python Package Installer), official documentation for pip.
Usually Python3 comes with pip preinstalled. If you get an error 'pip command not found', use the following command to install pip:
sudo easy_install pipInstall virtualenv
virtualenv is a tool to create isolated Python projects. Think of it, as a cleanroom, isolated from other virsions of Python and libriries.
Enter this command into terminal
sudo pip install virtualenvor if you get an error
sudo -H pip install virtualenvStart virtualenv
Navigate to where you want to store your code. Create new directory.
mkdir my_project && cd my_projectINSIDE my_project folder create a new virtualenv
Pip Command Macos
virtualenv envActivate virtualenv
source env/bin/activate
Comments are closed.