我是python3的新手,我不知道如何在ubuntu 16.04中设置PYTHONHOME。 我试过whereis python它如下所示 它展示了这么多版本。从这个我如何设置pythonhome for python3.x
sysadmin@localoffice:~$ whereis python
python: /usr/bin/python /usr/bin/python3.5 /usr/bin/python2.7
/usr/bin/python3.5m-config /usr/bin/pythnfig
/usr/bin/python3.5m /usr/lib/python3.5 /usr/lib/python2.7
/etc/python /etc/python3.5 /etc/python2local/lib/python3.5
/usr/local/lib/python2.7 /usr/include/python3.5
/usr/include/python3.5m
/usr/share/usr/share/man/man1/python.1.gz
sysadmin@localoffice:~$ echo ${PYTHONPATH}
sysadmin@localoffice:~$
答案 0 :(得分:0)
尝试:
alias python /path/to/your/python/home
e.g:
alias python /usr/bin/python2.7