交叉编译的Python 3.6缺少pip,setuptools和其他核心包

时间:2017-11-30 02:33:59

标签: python raspberry-pi dependencies cross-compiling

我刚刚从Fedora 26 64位交叉编译Python 3.6到Raspberry Pi 3,一切都很顺利,直到它检查pipsetuptools的最后一部分:

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中构建pipsetuptools

修改:这是my question about how to cross-compile Python 3.6 for a Raspberry Pi 3的后续问题。

0 个答案:

没有答案