将’/home/ll/seglink-master/pylib/src’添加到 PYTHONPATH
1、新建一个.pth文件
sudo gedit /home/ll/seg-env/local/lib/python2.7/site-packages/a.pth
2、写入要添加的路径,保存退出
3、查看一下新添加的路径
(seg-env)ll@gpuserver1:~$ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/home/ll/seg-env/lib/python2.7', '/home/ll/seg-env/lib/python2.7/plat-x86_64-linux-gnu', '/home/ll/seg-env/lib/python2.7/lib-tk', '/home/ll/seglink-master/pylib/src']
已经在了,OK…