永发信息网

根据网上高手提供的patch,我成功编译了python2.7.2到安卓机子上,在模拟终端下输入pyt

答案:2  悬赏:80  手机版
解决时间 2021-04-14 10:06
  • 提问者网友:留有余香
  • 2021-04-13 21:22
根据网上高手提供的patch,我成功编译了python2.7.2到安卓机子上,在模拟终端下输入python --help可以返回帮助信息,但是直接输入python就提示sh-4.2$ python
Traceback (most recent call last):
File "/usr/share/python/lib/python2.7/site.py", line 563, in
main()
File "/usr/share/python/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/share/python/lib/python2.7/site.py", line 278, in addusersitepackages
user_site = getusersitepackages()
File "/usr/share/python/lib/python2.7/site.py", line 253, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/share/python/lib/python2.7/site.py", line 243, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/share/python/lib/python2.7/sysconfig.py", line 520, in get_config_var
return get_config_vars().get(name)
File "/usr/share/python/lib/python2.7/sysconfig.py", line 424, in get_config_vars
_CONFIG_VARS['userbase'] = _getuserbase()
File "/usr/share/python/lib/python2.7/sysconfig.py", line 182, in _getuserbase
return env_base if env_base else joinuser("~", ".local")
File "/usr/share/python/lib/python2.7/sysconfig.py", line 169, in joinuser
return os.path.expanduser(os.path.join(*args))
File "/usr/share/python/lib/python2.7/posixpath.py", line 260, in expanduser
userhome = pwd.getpwuid(os.getuid()).pw_dir
KeyError: 'getpwuid(): uid not found: 10047'
sh-4.2$
如何解决以上错误??
最佳答案
  • 五星知识达人网友:你可爱的野爹
  • 2021-04-13 22:38
应该是没有获得足够权限的问题,好像是这样的
全部回答
  • 1楼网友:夜风逐马
  • 2021-04-13 23:43
搜一下:根据网上高手提供的patch,我成功编译了python2.7.2到安卓机子上,在模拟终端下输入pyt
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯