我是否丢失了Python 2.7,Mac OS仍然需要它吗?如果是这样,我该如何解决?
我是Mac OS上的Python 3.x长期用户。我想尝试Miniconda3,看看是否可以推荐给Mac和Windows学生(非CS)。现在,当我尝试$ type -a python3
时,我得到:
python3 is /Applications/miniconda3/bin/python3
python3 is /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
python3 is /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
python3 is /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
python3 is /usr/local/bin/python3
尝试$ type -a python2
并获得:
-bash: type: python2: not found
尝试$ type -a python
并获得:
python is /Applications/miniconda3/bin/python
python is /usr/bin/python
我在Python 3.7下使用了Miniconda 64位(.pkg安装程序):
答案 0 :(得分:2)
键入/usr/bin/python
和:
Python 2.7.10 (default, Oct 6 2017, 22:29:07)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
好的,一切都很好。谢谢,juanpa.arrivillaga!