osx - macOS X weird python -


short q,

in mac os sierra terminal,

if do:

whereis python /usr/bin/python 

then if do: /usr/bin/python opens python 2.10

but if execute python opens python 2.7.8.

how can know whereis python 2.7.8 , why whereis points different python version default one?

you can run python , check sys.executable.

>>> import sys >>> sys.executable '/usr/bin/python' 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -