1097 Ads Pythoninstallationinstructions
1097 Ads Pythoninstallationinstructions
For this course, we will install Python through an open source data science package management
system called conda. It is developed by Anaconda, Inc. and runs on Windows, macOS and
Linux.
Miniconda Minimal installer with conda, Python and Needs 400MB disk space
dependencies
We recommend downloading Miniconda for its lean setup, it contains all the essential tools
required for this course. Additional Python packages can be easily installed using the conda or
pip package managers.
Once you have the installation file downloaded to your computer, follow the below operating
system specific instructions.
Verify Installation:
● Open Anaconda prompt from Windows Start menu.
● Enter conda list. If conda is installed and working, this will display a list of installed
packages and their versions.
● Enter the command python. This command runs the Python shell. If conda is installed
and working, the version information it displays when it starts up will include Anaconda.
To exit the Python shell, enter the command quit().
● Use conda deactivate to deactivate the environment after use. The environment name is
not required for deactivation. But before you do that, let us install Jupyter within our
environment and test Python in a Jupyter notebook. To do that follow the instructions in
the Jupyter installation document.
Installation Steps: macOS
● Miniconda has two types of installation files for macOS:
○ Package file (.pkg) for GUI based installation
○ Shell file (.sh) for installation through Terminal
● Download either of these file types based on your preference.
● Choose the default option Just Me on the Destination select window, this is important if
you do not have the administrator privileges for the computer. The default installation
path for GUI based installation is at /Users/<your-username>/opt folder.
● Continue through the installation, and close the installation window once complete.
Shell File Installation (CLI):
● Open the Terminal and navigate to the folder where the installation file is downloaded to.
● Run the bash command followed by the filename like:
bash Miniconda3-latest-MacOSX-x86_64.sh
● Follow through the screen prompts and agree to license terms by entering yes
● Next, select the default installation location by pressing ENTER key. Unlike the .pkg file,
the default path for shell installation is at: /Users/<your-username>
● The installer prompts “Do you wish the installer to initialize Miniconda3 by running
conda init?” Type yes.