Ubuntu安装的python2.7使用项目脚本启动报了下面的错
Traceback(mostrecentcalllast):File"/usr/lib/python2.7/site.py",line563,in<module>main...
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 563, in <module>
main()
File "/usr/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 247, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 236, in getuserbase
from sysconfig import get_config_var
File "/usr/lib/python2.7/sysconfig.py", line 124, in <module>
_PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
File "/usr/lib/python2.7/sysconfig.py", line 119, in _safe_realpath
return realpath(path)
File "/usr/lib/python2.7/posixpath.py", line 382, in realpath
path, ok = _joinrealpath('', filename, {})
File "/usr/lib/python2.7/posixpath.py", line 407, in _joinrealpath
if not islink(newpath):
File "/usr/lib/python2.7/posixpath.py", line 145, in islink
return stat.S_ISLNK(st.st_mode)
AttributeError: 'module' object has no attribute 'S_ISLNK' 展开
File "/usr/lib/python2.7/site.py", line 563, in <module>
main()
File "/usr/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 247, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 236, in getuserbase
from sysconfig import get_config_var
File "/usr/lib/python2.7/sysconfig.py", line 124, in <module>
_PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
File "/usr/lib/python2.7/sysconfig.py", line 119, in _safe_realpath
return realpath(path)
File "/usr/lib/python2.7/posixpath.py", line 382, in realpath
path, ok = _joinrealpath('', filename, {})
File "/usr/lib/python2.7/posixpath.py", line 407, in _joinrealpath
if not islink(newpath):
File "/usr/lib/python2.7/posixpath.py", line 145, in islink
return stat.S_ISLNK(st.st_mode)
AttributeError: 'module' object has no attribute 'S_ISLNK' 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |