- Python Data Mining Quick Start Guide
- Nathan Greeneltch
- 234字
- 2021-06-24 15:19:44
Installing on Linux
To install the distribution, follow these steps given as follows:
- First, download the latest installer build from https://www.anaconda.com/download/#linux.
- Then, in the Linux Terminal, pass this bash command:
$ bash Anaconda-latest-Linux-x86_64.sh
- Follow the prompts in the terminal and it will begin installing. Once done, you will be asked if you want to allow Conda to be auto-initialized with a .bashrc entry. I recommend choosing N and activating it manually when needed, just in case you decide to have multiple versions of Conda on your system. In this case, you can launch the Conda prompt by using the following command:
$ source /{anaconda3_dir}/bin/activate
This is will source the Conda activate shell script and call it to activate the base environment, which is the default Anaconda Python bundle. Adding new environments will be discussed in the following section on how to install specific libraries. At this point, passing the Python command will open an interactive shell where you can execute Python code line-by-line, as shown in the following code snippet:
(base) $ Python
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.random.random(10)
array([0.48489815, 0.80944492, 0.89740441, 0.93031125, 0.71774534,
0.63817451, 0.93231809, 0.75820457, 0.17550135, 0.62126858])
Alternatively, you can execute the code in a stored Python script by using the following command:
(base) $ Python script.py
推薦閱讀
- 過程控制工程及仿真
- 錯覺:AI 如何通過數(shù)據(jù)挖掘誤導我們
- Julia 1.0 Programming
- UTM(統(tǒng)一威脅管理)技術(shù)概論
- Expert AWS Development
- Maya極速引擎:材質(zhì)篇
- Windows 7寶典
- Cloudera Administration Handbook
- CompTIA Linux+ Certification Guide
- Java Web整合開發(fā)全程指南
- 變頻器、軟啟動器及PLC實用技術(shù)260問
- 大數(shù)據(jù)時代
- INSTANT Puppet 3 Starter
- 一步步寫嵌入式操作系統(tǒng)
- Photoshop CS4數(shù)碼攝影處理50例