Installing Python on CentOS -
i have centos 6.5. needed install python 2.7.6 on computer altinstall. downloaded python following link:
http://python.org/ftp/python/2.7.6/python-2.7.6.tar.xz
untar-ed file.then used following command
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared ldflags="-wl,-rpath /usr/local/lib"
after use "make" , following error apeared
file "/home/python-2.7.6/lib/site.py", line 548, in <module> main() file "/home/python-2.7.6/lib/site.py", line 530, in main known_paths = addusersitepackages(known_paths) file "/home/python-2.7.6/lib/site.py", line 266, in addusersitepackages user_site = getusersitepackages() file "/home/python-2.7.6/lib/site.py", line 241, in getusersitepackages user_base = getuserbase() # set user_base file "/home/python-2.7.6/lib/site.py", line 231, in getuserbase user_base = get_config_var('userbase') file "/home/python-2.7.6/lib/sysconfig.py", line 516, in get_config_var return get_config_vars().get(name) file "/home/python-2.7.6/lib/sysconfig.py", line 468, in get_config_vars _init_posix(_config_vars) file "/home/python-2.7.6/lib/sysconfig.py", line 352, in _init_posix _sysconfigdata import build_time_vars importerror: no module named _sysconfigdata make: *** [sharedmods] error 1
how can fix ?
Comments
Post a Comment