Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python拾取';python2.7';而不是';python';适用于用户网站 >python2.7-m站点 sys.path=[ ] 用户基础:'/mounted/on/remote/dir/sshfs/basedir'(存在) 用户站点:'/mounted/on/remote/dir/sshfs/basedir/lib/python/SITE-packages'(不存在) 启用用户站点:True_Python - Fatal编程技术网

Python拾取';python2.7';而不是';python';适用于用户网站 >python2.7-m站点 sys.path=[ ] 用户基础:'/mounted/on/remote/dir/sshfs/basedir'(存在) 用户站点:'/mounted/on/remote/dir/sshfs/basedir/lib/python/SITE-packages'(不存在) 启用用户站点:True

Python拾取';python2.7';而不是';python';适用于用户网站 >python2.7-m站点 sys.path=[ ] 用户基础:'/mounted/on/remote/dir/sshfs/basedir'(存在) 用户站点:'/mounted/on/remote/dir/sshfs/basedir/lib/python/SITE-packages'(不存在) 启用用户站点:True,python,Python,它之所以显示为“不存在”,是因为实际存在的是/mounted/on/remote/dir/sshfs/basedir/lib/python2.7/site packages 有没有一种简单的方法可以强迫我的本地python解释器查看python2.7而不是USER\u站点中的python?如果调用/usr/bin/python或/usr/bin/python2.7,则没有什么区别 > python2.7 -m site sys.path = [ <PATHS> ] US

它之所以显示为“不存在”,是因为实际存在的是
/mounted/on/remote/dir/sshfs/basedir/lib/python2.7/site packages

有没有一种简单的方法可以强迫我的本地python解释器查看
python2.7
而不是
USER\u站点中的
python
?如果调用
/usr/bin/python
/usr/bin/python2.7
,则没有什么区别

> python2.7 -m site
sys.path = [
    <PATHS>
]
USER_BASE: '/mounted/on/remote/dir/sshfs/basedir' (exists)
USER_SITE: '/mounted/on/remote/dir/sshfs/basedir/lib/python/site-packages' (doesn't exist)
ENABLE_USER_SITE: True