我刚刚从Fedora 26 64位交叉编译Python 3.6到Raspberry Pi 3,一切都很顺利,直到它检查pip
和setuptools
的最后一部分:
Requirement already up-to-date: setuptools in /usr/lib/python3.6/site-packages
Requirement already up-to-date: pip in /usr/lib/python3.6/site-packages
就在此之前,还有很多乱码:
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--altinstall --upgrade" ;; \
install|*) ensurepip="--altinstall" ;; \
esac; \
_PYTHON_PROJECT_BASE=/home/ariel/Descargas/Python-3.6.3 _PYTHON_HOST_PLATFORM=linux-arm PYTHONPATH=/home/ariel/Descargas/Python-3.6.3/build/lib.linux-arm-3.6:./Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_m_linux_arm-linux-gnueabihf python3.6 -m ensurepip \
$ensurepip --root=/ ; \
fi
显然,由于--root = /,它正在检查我本地计算机上的可用性。如果我导航到altinstall目标下的site-packages路径,我只看到一个README.txt文件。如何在Python 3.6中构建pip
和setuptools
?
修改:这是my question about how to cross-compile Python 3.6 for a Raspberry Pi 3的后续问题。