PC格式化后找不到站点包

Don't find site-packages after PC formatting

我格式化了我的电脑以找到站点包,但我无法使用这些必要的行看到它们。

import sys
print ('\n'.join(sys.path))

我找不到路径(我想看看那些路径):

'/usr/local/lib/python2.7/site-packages'

'/usr/local/lib/python3.5/site-packages'

输出是:

redhwan@redhwan:~$ python
Python 2.7.12 (default, Nov 12 2018, 14:36:49) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print ('\n'.join(sys.path))

/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages

收到了here,很不错的博客

有人评论

export PYTHONPATH="/usr/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages"

但是我不知道这个操作是否还有其他问题。