Upgrade Python on Mac from 2.7 to 3.6 (or newest) for elastic beanstalk client AWS

前端 未结 1 520
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 04:16

I\'m trying to follow the instructions here but no matter what I do it seems to be stuck on using Python 2.7.1 which is causing me errors currently.

http://docs.aws.

相关标签:
1条回答
  • 2021-01-13 05:01

    You do not want to upgrade the default python 2.7x installation or the python 3.x installation available on linux or OSX. There are usually lots of other libraries and applications that depend on this default installation. When you want to use a specific version of python the approach is to rely on a virtual enviorenment.

    virtualenv is a tool to create isolated Python environments.

    You are then leaving the system installation untouched. Getting the hang of virtualenv is quite easy. Once you create it (a one off task). All you need is to activate it and then you can use it as you would normally use the default python interpreter. How to copy packages from one virtualenv (or the system installation) to another is discussed here:

    Installing python3 in a python2 virtual environment

    0 讨论(0)
提交回复
热议问题