Python 3.4.3 在学习机上安装失败
PHP中文网
PHP中文网 2017-04-17 15:18:21
0
1
440

源码安装,make install到一半显示generate-posix-vars failed,但目录下已经有了python.exe(Linux平台)。
传-V或--help有输出,传-S可以用但是自带库没有了,传-或-i或不传参数,一下三种提示会随机出现一种:
1. Failed to import the site module,最后一行ImportError: No module named '_sysconfigdata'
2. Segmentation fault
3. Illegal instruction

系统自带的2.7很废柴。如果我make altinstall3.4.3的话,安装到最后会提示找不到sys模块。
环境 诺亚舟NP1500 busybox1.1 gcc版本3.4.4

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
左手右手慢动作

python.exe cannot run on Linux platform. Follow the following steps to compile and install

wget http://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
tar xJf ./Python-3.4.3.tar.xz
cd ./Python-3.4.3
./configure --prefix=/opt/python3.4
make && sudo make install

Then create an alias py for python3

echo 'alias py="/opt/python3.4/bin/python3.4"' >> .bashrc
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!