官术网_书友最值得收藏!

Installing Anaconda

The first thing we need to do is set up our Python environment such that rest of the libraries will be easily accessible through Python. Anaconda is a popular data science platform with a Python interface and is available here: https://www.anaconda.com/. It has conda as a package manager, which can install, delete, and manage versions of Python libraries while keeping it isolated from other Python environments. In this book, we will use conda from Anaconda. Let's go ahead and set this up. 

First, download and install Anaconda:

  • On Linux:
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-MacOSX-x86_64.sh
  • On macOS, wget is not directly available; use brew to install wget:
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-MacOSX-x86_64.sh
bash Anaconda3-5.0.1-MacOSX-x86_64.sh

This will install the Python libraries in the folder $HOME/anaconda3, since we are using Python 3. A Python 2 version is also available and the installation process is similar. To use Anaconda, the newly installed libraries need to be added in $PATH, this can be done every time a new shell is launched by running: 

export PATH="$PATH_TO_ANACONDA3/anaconda3/bin:$PATH" 

$PATH_TO_ANACONDA3 is the location path to the Anaconda3 folder. For more convenience, add this to .bashrc or .bash_profile depending on if you are using Linux or macOS respectively. 

Once conda is installed, many other scientific packages will also be installed. Some of these packages are:

主站蜘蛛池模板: 凉山| 乌苏市| 三亚市| 江华| 马尔康县| 内江市| 嫩江县| 伽师县| 炎陵县| 敦化市| 墨玉县| 鸡西市| 平远县| 涟水县| 九江县| 镇康县| 淳安县| 平阳县| 上杭县| 巨鹿县| 宜阳县| 麻江县| 张掖市| 大关县| 屏山县| 东兰县| 封丘县| 福建省| 龙南县| 石狮市| 辉县市| 磐石市| 卢龙县| 晋州市| 余干县| 迁安市| 尖扎县| 黄龙县| 双流县| 建平县| 沈阳市|