摘要: 编辑文件 /etc/sudoers 将Defaults env_reset ,改为 Defaults !env_reset 编辑文件~/.bashers 添加 之后 OK,这就好了 阅读全文
posted @ 2018-04-21 14:34 雪地里的Alan 阅读(13226) 评论(6) 推荐(0) 编辑
摘要: 今天刚使用ubuntu 由于安装的是pip 8的版本,我感觉pip版本有些低就随手将将pip更新了,刚新到pip 10版本的,没想到刚更新完就报错了, 发生 ImportError: cannot import name 'main'的问题, 他报错的文件是在usr/bin/pip 的,之后就进入到 阅读全文
posted @ 2018-04-21 12:21 雪地里的Alan 阅读(17502) 评论(1) 推荐(0) 编辑
摘要: 1 apt-get install python3-pip 阅读全文
posted @ 2018-04-21 11:43 雪地里的Alan 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 一般来说ubuntu 刚更改为python3为默认版本后要进行一下更新包等等的内容(当然不更新一下也是可以的,最好更新一下,第一次更新较慢) 使用下面两行代码: 阅读全文
posted @ 2018-04-21 11:34 雪地里的Alan 阅读(474) 评论(0) 推荐(0) 编辑
摘要: ubuntu 自带两个python版本,一个是python2一个是python3 默认版本是python2的,想要更改ubuntu python3 为默认版本, 只需要两行命令: 阅读全文
posted @ 2018-04-21 11:14 雪地里的Alan 阅读(1303) 评论(0) 推荐(0) 编辑