由于tk1是arm架构的,很多库的安装依赖都很奇怪,由此导致下面一系列坑:
1 源的问题:
默认的源不知道为何无法apt-get了,然尝试用USTC 还有163的源,在apt-get update的时候都报错 关于armhf的
解决方案:使用下面的源
SOLVED!
It could be useful for others (that's strange i'm the only that faced this issue!):
since Ubuntu raring has reached EOL and packages removed, i tried to find packages on other sites. I found that when a release is at EOL packages are moved in old-releases.ubuntu.com!
So, it's enough you edit the /etc/apt/sources.list file, cancel the previous line and insert the following new lines:
deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
then save, close and in terminal sudo apt-get update.
2. 使用sudo apt-get install python-pip时
各种提示缺少包,按照提示下载包时 又说版本不对
解决方案:
sudo apt-get purge python-pkg-resources
Once completed successfully, first run
sudo apt-get -f install
then
sudo apt-get install python-pip
3. pip install时显示缺少证书(使用如下的方法均未解决问题,解决第4个坑时,重装了pip ,选择了第一y,然后再安装build-essensial,不过似乎没安装上,anyway,解决了)
Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
解决方案:
方案1.
pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org pythonPacka