ubuntu14-系统重装后-脚本命令

36 篇文章 4 订阅

cd ~

 sudo apt-get install python-pip

 sudo apt-get update
 sudo apt-get upgrade gcc
 sudo apt-get install python2.7-dev
 sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
 sudo pip install numpy scipy
 sudo pip install scipy
 sudo pip install Theano
 sudo pip install scikit-neuralnetwork

 sudo pip install tqdm

 sudo apt-get install git


>sudo pip install -e git+https://github.com/lisa-lab/pylearn2.git#egg=Package

>git clone https://github.com/aigamedev/scikit-neuralnetwork.git

>sudo pip install nose


> sudo apt-get install libpng-dev
> sudo apt-get install libjpeg8-dev
> sudo apt-get install libfreetype6-dev
> sudo pip install matplotlib

sudo apt-get build-dep python-matplotlib

sudo pip install matplotlib


> sudo apt-get purge ubuntuone*
> sudo apt-get purge empathy empathy-common
> sudo apt-get purge transmission-*

> sudo apt-get remove libreoffice-common

> sudo apt-get remove unity-webapps-common

> sudo apt-get install vim

> sudo apt-get install vpnc git 
> sudo apt-get install openssh-server
> sudo apt-get install cmake qtcreator 
> sudo apt-get install exfat-fuse 
> sudo apt-get install lnav
> sudo apt-get install unrar 

> sudo apt-get install nautilus-open-terminal


安装cryptograph:

sudo apt-get install build-essential libssl-dev  libffi-dev python-dev

pip install crpytography


sudo apt-get remove totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku  landscape-client-ui-install 


sudo apt-get install ubuntu-restricted-extras

sudo apt-get remove empathy


sudo apt-get clean

sudo apt-get autoclean


Google

sudo vi /etc/hosts

sudo apt-get install nscd

sudo /etc/init.d/nscd restart


====================================================================================

python-pip默认是2.6版本的,如果要安装python3的需要通过下面的命令来安装:

sudo apt-get install python3-pip

安装python包的命令如下(这里使用的命令是pip3,而非pip):
sudo pip3 install packagename

查看pip3下已安装的packagename及版本号:
pip3 freeze

安装了python3之后,如果使用python3执行程序,那么就不能import python2.7/site-packages中的库
(1)使用pip install XXX
          新安装的库会放在这个目录下面:
          python2.7/site-packages/
(2)使用pip3 install XXX
         新安装的库会放在这个目录下面:
         python3.4/site-packages/

testuser@t5810:~$ 
testuser@t5810:~$ 
testuser@t5810:~$ which python
/usr/bin/python
testuser@t5810:~$ 
testuser@t5810:~$ which python3
/usr/bin/python3
testuser@t5810:~$ 
testuser@t5810:~$ ll /usr/bin/python
lrwxrwxrwx 1 root root 9  5月  7 11:55 /usr/bin/python -> python2.7*
testuser@t5810:~$ 
testuser@t5810:~$ ll /usr/bin/python3
lrwxrwxrwx 1 root root 9  5月  7 11:55 /usr/bin/python3 -> python3.4*
testuser@t5810:~$ 
testuser@t5810:~$ python --version
Python 2.7.6
testuser@t5810:~$ python3 --version
Python 3.4.3
testuser@t5810:~$
testuser@t5810:~$ pip --version
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
testuser@t5810:~$
testuser@t5810:~$ pip3 --version
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
testuser@t5810:~$ 
testuser@t5810:~$ 
testuser@t5810:~$ pip3 freeze|grep numpy
numpy==1.8.2
testuser@t5810:~$ 
testuser@t5810:~$ pip freeze|grep numpy
numpy==1.12.1
testuser@t5810:~$ 
testuser@t5810:~$ 
testuser@t5810:~$ pip3 freeze|grep scipy
testuser@t5810:~$ 
testuser@t5810:~$ pip freeze|grep scipy
scipy==0.19.0
testuser@t5810:~$ 
testuser@t5810:~$ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import scipy
>>> scipy
<module 'scipy' from '/usr/local/lib/python2.7/dist-packages/scipy/__init__.pyc'>
>>> 
>>> exit()
testuser@t5810:~$ 
testuser@t5810:~$ python3
Python 3.4.3 (default, Nov 17 2016, 01:08:31) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'scipy'
>>> 
>>> import numpy
>>> 
>>> numpy
<module 'numpy' from '/usr/lib/python3/dist-packages/numpy/__init__.py'>
>>> 
>>> exit()
testuser@t5810:~$ 
testuser@t5810:~$ 
testuser@t5810:~$ 











评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值