问题描述
是否有一种方法可以将python3.5设置为AWS中的默认python.每次我下次尝试连接python2.7时,它都是默认版本,而pip 6是最新版本,因为我知道几分钟前就已对其进行了更新.这是我遵循的方法: amazon_link
Is there a way to make python3.5 as the default python in AWS.every time i try the next time i connect python2.7 is the default one and pip 6 is the last version, knowing that I did updated it some minutes before.here is the method i followed : amazon_link
这是Amazon告诉版本的另一个链接,实际上它们的版本为3.5 另一个链接
here is another link of amazon telling the versions, actually they are at 3.5 another_link
预先感谢您,:)最好的祝福
Thank you in advance, :)best wishes
推荐答案
alternatives --set python /usr/bin/python3.5
然后再返回
alternatives --set python /usr/bin/python2.7
如果您想查看当前指向的内容
If you want to see what it currently points to
alternatives --display python
这是系统范围的设置,不仅仅适用于当前用户.系统设置存储在/etc/alternatives
This is a system-wide setting not just for the current user. The system settings are stored in /etc/alternatives
这篇关于在AWS中将python3.5设置为默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!