我正试着安装praw,让我做一个Reddit机器人。我已经在一台Windows机器上实现了这一点,并成功地制作了一个简单的机器人,但在尝试在我的mac上安装praw时遇到了一个持续的错误。
当我进入时
pip install praw
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting praw
Using cached https://files.pythonhosted.org/packages/f6/df/b42c0a3b86a43a62a46e5b2f07930230ac7719624800a2052218993fb767/praw-6.4.0-py2.py3-none-any.whl
ERROR: Package 'praw' requires a different Python: 2.7.9 not in '>=3.4'
我的Python 3版本应该没问题:
$ python3 --version
Python 3.4.3
在Windows上,我可以简单地安装Python 3,然后轻松地安装praw;但是MacOS似乎使用Python 2.7作为某种默认设置——我不知道如何覆盖它。