- Python Reinforcement Learning
- Sudharsan Ravichandiran Sean Saito Rajalingappaa Shanmugamani Yang Wenzhuo
- 301字
- 2021-06-24 15:17:26
Installing Anaconda
All the examples in the book use the Anaconda version of Python. Anaconda is an open source distribution of Python. It is widely used for scientific computing and processing a large volume of data. It provides an excellent package management environment. It provides support for Windows, macOS, and Linux. Anaconda comes with Python installed along with popular packages used for scientific computing such as NumPy, SciPy, and so on.
To download Anaconda, visit https://www.anaconda.com/download/, where you will see an option for downloading Anaconda for different platforms.
If you are using Windows or Mac, you can directly download the graphical installer according to your machine architecture and install using the graphical installer.
If you are using Linux, follow these steps:
- Open your Terminal and type the following to download Anaconda:
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
- Upon completion, we can install Anaconda via the following command:
bash Anaconda3-5.0.1-Linux-x86_64.sh
After successful installation of Anaconda, we need to create a new Anaconda environment that is basically a virtual environment. What is the need for a virtual environment? Say you are working on project A, which uses NumPy version 1.14, and project B, which uses NumPy version 1.13. So, to work on project B you either downgrade NumPy or reinstall Anaconda. In each project, we use different libraries with different versions which are not applicable to other projects. Instead of downgrading or upgrading versions or reinstalling Anaconda every time for a new project, we use a virtual environment. This creates an isolated environment for the current project so that each project can have its own dependencies and will not affect other projects. We will create such an environment using the following command and name our environment universe:
conda create --name universe python=3.6 anaconda
We can activate our environment using the following command:
source activate universe
- 數(shù)據(jù)存儲(chǔ)架構(gòu)與技術(shù)
- PyTorch深度學(xué)習(xí)實(shí)戰(zhàn):從新手小白到數(shù)據(jù)科學(xué)家
- 大數(shù)據(jù)可視化
- Python金融大數(shù)據(jù)分析(第2版)
- 醫(yī)療大數(shù)據(jù)挖掘與可視化
- 大數(shù)據(jù):規(guī)劃、實(shí)施、運(yùn)維
- 3D計(jì)算機(jī)視覺(jué):原理、算法及應(yīng)用
- 云數(shù)據(jù)中心網(wǎng)絡(luò)與SDN:技術(shù)架構(gòu)與實(shí)現(xiàn)
- 探索新型智庫(kù)發(fā)展之路:藍(lán)迪國(guó)際智庫(kù)報(bào)告·2015(上冊(cè))
- 區(qū)塊鏈技術(shù)應(yīng)用與實(shí)踐案例
- 改變未來(lái)的九大算法
- Visual FoxPro數(shù)據(jù)庫(kù)技術(shù)基礎(chǔ)
- 利用Python進(jìn)行數(shù)據(jù)分析(原書(shū)第2版)
- SOLIDWORKS 2018中文版機(jī)械設(shè)計(jì)基礎(chǔ)與實(shí)例教程
- 數(shù)字化轉(zhuǎn)型方法論:落地路徑與數(shù)據(jù)中臺(tái)