1
qinkun1234 2015-03-11 22:11:34 +08:00
http://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntu
You can use wget to download from commandline: wget http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.0.1-Linux-x86_64.sh And after download is finished do: bash Anaconda-2.0.1-Linux-x86_64.sh |
2
Septembers OP @qinkun1234 文不对题
我不是需要安装anaconda,是要重置Ubuntu的Python环境,谢谢。 |
3
vivisidea 2015-03-12 13:27:13 +08:00
重装 python 试试。。好像没有直接能 reset 的
apt-get remove xx apt-get install xx |
4
vivisidea 2015-03-12 13:31:35 +08:00
@vivisidea
尝试了下似乎不是很靠谱,会 remove 掉一堆相关的东西,试试 --reinstall 看是不是想要的效果。。 xxx:$ sudo apt-get --reinstall install python Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.2-ubuntuoneui-3.0 gir1.2-unique-3.0 gambas3-gb-form-stock libubuntuoneui-3.0-1 libkms1 pastebinit Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 154 not upgraded. Need to get 168 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://mirrors.sohu.com/ubuntu/ precise-updates/main python amd64 2.7.3-0ubuntu2.2 [168 kB] Fetched 168 kB in 0s (335 kB/s) (Reading database ... 255759 files and directories currently installed.) Preparing to replace python 2.7.3-0ubuntu2.2 (using .../python_2.7.3-0ubuntu2.2_amd64.deb) ... Unpacking replacement python ... Processing triggers for doc-base ... Processing 1 changed doc-base file... Registering documents with scrollkeeper... Processing triggers for man-db ... Setting up python (2.7.3-0ubuntu2.2) .. |
5
qinkun1234 2015-03-13 10:08:00 +08:00 1
Anaconda是另一种换 py版本的方法:
$ conda create -n py3k python=3 ipython ... $ source activate py3k prepending /home/ilan/a150/envs/py3k/bin to PATH (py3k)$ ipython Python 3.3.2 |Continuum Analytics, Inc.| (default, Aug 5 2013, 15:04:35) |
6
styletjy 2015-03-17 23:17:10 +08:00
重设环境变量?
|