2019-08-07 python2 和python3兼容及模块安装

前几天,要用enrichplot,就需要升级R,然后要升级的时候又发现一个终极问题,升级系统,可悲的我用的是ubuntu 17.10,不升级就装不了R,可升级也不是那么顺利:

fail to download repository information

Check your Internet connection.

一顿折腾,上网找了无数攻略,最奏效的那个居然忘了保存链接了。今天又遇上了python3的pip3安装问题,ubuntu 18.04.3 LTS, python2.7 和python3.6都安装了,之前默认是python2.7。

改default为python3:

https://blog.csdn.net/weixin_41863685/article/details/83214068

pip3安装问题:

https://www.jianshu.com/p/ce85f5bd900f

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/click'

Consider using the `--user` option or check the permissions.

https://blog.csdn.net/qq_30163461/article/details/80402276

完美解决!

你可能感兴趣的:(2019-08-07 python2 和python3兼容及模块安装)