在linux系统中只能用python3而不能用python的解决方案
问题:python文件无法直接运行,经查,本电脑已安装python3在 /usr/bin
解决方案:创建软连接,将python3连接到python上。
1 cd /usr 2 sudo ln -s /usr/bin/python3 /usr/bin/python
问题解决。
参考链接:https://blog.csdn.net/pengchengliu/article/details/102813095
问题:python文件无法直接运行,经查,本电脑已安装python3在 /usr/bin
解决方案:创建软连接,将python3连接到python上。
1 cd /usr 2 sudo ln -s /usr/bin/python3 /usr/bin/python
问题解决。
参考链接:https://blog.csdn.net/pengchengliu/article/details/102813095