xujiachang1024 / Python-Installers

Command to use Anaconda to install Python and packages on macOS or Linux machines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Installers

Commands to use Anaconda to install Python environments and packages

How to install Python environments using conda:

  1. Open terminal
  2. Run the following command to install anaconda
conda install conda
  1. Replace *in the following command with the name you choose for this Python environment (e.g. Py27, Py36, etc.); replace $ in the following command with the version number of Python environment you want to install (e.g. 2.7, 3.6, etc); run the following command to install Python environment with the desired version and name
conda create -n * python=$
  1. Replace *in the following command with the name of the Python environment that you have installed (e.g. Py27, Py36, etc.); run the following command to activate the Python version you want
source activate *
  1. Run the following command to deactivate the current Python version (NOT uninstall)
source deactivate

How to install Python packages using conda:

conda install -c conda-forge numpy
conda install -c conda-forge pandas
conda install -c conda-forge matplotlib
conda install -c conda-forge scikit-learn
conda install -c conda-forge tensorflow

About

Command to use Anaconda to install Python and packages on macOS or Linux machines

License:MIT License