ubuntu 安装python3.6.6

http://www.cnblogs.com/yhongji/p/9383857.html

https://www.jianshu.com/p/1565f38f4236

 ./configure --with-ssl --prefix=/usr/local/python3

zipimport.ZipImportError: can't decompress data; zlib not available
Makefile:1079: recipe for target 'install' failed
make: *** [install] Error 1

解决办法:安装依赖

 

1 sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
2 libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
3 xz-utils tk-dev
sudo apt-get install build-essential
sudo apt-get install python3-dev
sudo apt-get install libxml2-de;
sudo apt-get install libxslt1-dev
sudo apt-get install libssl-dev
apt-get install -y libffi-dev

安装一个python3.6.6,终于可以pip3下载了。
ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

sudo vim /usr/bin/lsb_release

修改第一行,指明python的版本号,若安装的是python3.6则修改:

#!/usr/bin/python3

为:

#!/usr/bin/python3.6


https://blog.csdn.net/u012114438/article/details/83578113




卸载了python3.4,导致没有终端,页面没有状态栏。 不要卸载

apt-get install nautilus-open-terminal

https://blog.csdn.net/terence1212/article/details/51340595

 

下面这个是重新安装桌面,可能会用到。重新安装桌面要startx启动。

sudo apt-get install ubuntu-minimal ubuntu-standard ubuntu-desktop
startx

 

posted @ 2019-04-30 10:54  于光远  阅读(1432)  评论(4编辑  收藏  举报