Ubuntn下Django开发问题总汇(不定期更新)

1、使用:sudo apt-get update ,错误描述:E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

解决:改用 sudo apt update

2、pip ,错误描述:Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal import main ModuleNotFoundError: No module named 'pip._internal'

  解决:$:   wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate 或者 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

   $: 接着运行命令,给python2安装pip,命令:python get-pip.py; 给python3 安装 pip3 ,命令:python3 get-pip.py

posted @ 2018-11-16 13:50  wowiwf  阅读(229)  评论(0编辑  收藏  举报