< standalone Projects-text mining >-2016/11/13 Second More-<python environment preparation >

Source: Internet
Author: User
Tags virtual environment

< standalone Projects-text mining >

Related background of project establishment, TODO direction.

First, Ubuntu environment configuration

Host system: Windows 7 SP1 64-bit operating system | i5-4210 CPU | 16GB RAM

VirtualBox Virtual Environment: GUN Vitrualbox

Linux system: Ubuntu 15.10 (ubuntu-15.10-desktop-i386)

Second, the installation of the Python module

1. Current version of Python check

[Email protected]:~$ python--version

Python 2.7.10

2. View the current installation module

[Email protected]:~$ python

>>>help ()

Help>modules

Please wait a moment and I gather a list of all available modules ...

Help>quit

Leaving help and returning to the Python interpreter. If you want to ask for help on a particular object directly from the interpreter,you can type "help(object)".

>>>import SYS

>>>sys.modules

3. View the version information of the module

>>>import Module

>>>module.__version__

>>>quit ()

4. Installation of common Python modules

Install the PIP tool First: sudo apt-get install Python-pip

Install: Pip install packagename Update: Pip install-u packagename removal: Pip uninstall PackageName search: Pip search PackageName Help: Pip Help

#查看已经安装的模块: List Installed Packages

[Email protected]:~$ pip list

[Email protected]:~$ wget https://pypi.python.org/pypi/setuptools

[Email protected]:~$ pip--version

Pip 1.5.6 from/usr/lib/python2.7/dist-packages (python2.7)

#安装setuptools:

  [Email protected]:~$ sudo apt-get install Python-setuptools

#查看Ubuntu中安装的Python路径

[Email protected]:~$ whereis python

python:/usr/bin/python2.7

[email protected]:~$ which python

/usr/bin/python

#安装numpy模块和matplotlib模块

[Email protected]:~$ sudo apt-get install Python-numpy

[Email protected]:~$ sudo apt-get install python-scipy

[Email protected]:~$ sudo apt-get install Python-matplotlib

  

#安装Python开发环境

[Email protected]:~$ sudo apt-get install Python-dev

#安装IPython

[Email protected]:~$ sudo apt-get install Ipython

#安装tornado

[Email protected]:~$ sudo apt-get install tornado

#安装libzmq-dev

[Email protected]:~$ sudo apt-get install Libzmq-dev

#安装scikit-learn Module (sklearn)

[Email protected]:~$ sudo apt-get install Python-sklearn

#安装pandas

[Email protected]:~$ sudo apt-get install Python-pandas

#安装patsy

[Email protected]:~$ sudo apt-get install Python-patsy

#安装statsmodels

[Email protected]:~$ sudo apt-get install python-statsmodels

#安装g + +

[Email protected]:~$ sudo apt-get install g++

#安装jieba

[Email protected]:~$ pip Install Jieba

#安装NLTK

[Email protected]:~$ sudo apt-get install PYTHON-NLTK

#安装MLpy

[Email protected]:~$ sudo apt-get install python-mlpy

#安装Shogun

[Email protected]:~$ sudo apt-get install Python-shogun

#安装MDP

[Email protected]:~$ sudo apt-get install PYTHON-MDP

#安装PyBrain

[Email protected]:~$ pip Install Pybrain

#安装BigML

[Email protected]:~$ pip Install BIGML

  

  

  

  

  

  

  

< standalone Projects-text mining >-2016/11/13 Second More-<python environment preparation >

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.