环境:ubuntu18
关于在终端中使用pip时出现的invalid syntax的问题
具体会出现Traceback (most recent call last):..............类似的错误,
而你install pip后却发现没有软件包,最适合的方法无异的
sudo apt-get update
到这里如果是普通的错误就可以解决了,但是再次pip时还是会出现语法错误,这个时候你要先检查你的版本问题,因为你的update并没有找到源,即/etc/apt/sources.list中并没有你需要的,这个时候你可以更换源:
参考源的更换:
——————————————————————————————————————————
转载于:
版权声明:本文为CSDN博主「KevinDB」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/everysigleday/article/details/105743534
# 阿里云源
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports mai