python - 替换发生在这里,因为完全扩展的 BINDIR 在配置中不可用

标签 python python-3.x python-3.4

<分区>

刚才,我在云平台上搭建了Linux。

我正在尝试在 CentOS 6.4 上安装 python3.4。

我无法摆脱这种情况。

我不明白下面的消息是什么意思。

我该如何解决?

$yum install gcc
...
$./configure
...
...
configure: creating ./config.status
config.status: creating Makefile.pre
config.status: creating Modules/Setup.config
config.status: creating Misc/python.pc
config.status: creating Misc/python-config.sh
config.status: creating Modules/ld_so_aix
config.status: creating pyconfig.h
config.status: pyconfig.h is unchanged
creating Modules/Setup
creating Modules/Setup.local
creating Makefile

$make
...
# Substitution happens here, as the completely-expanded BINDIR
# is not available in configure
sed -e "s,@EXENAME@,/usr/local/bin/python3.4m," < ./Misc/python-        config.in >python-config.py
# Replace makefile compat. variable references with shell script  compat. ones;  -> 
sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh     >python-config
# On Darwin, always use the python version of the script, the shell
# version doesn't use the compiler customizations that are provided
# in python (_osx_support.py).
if test `uname -s` = Darwin; then \
            cp python-config.py python-config; \
    fi

我又试了一次。 说来也怪,报错信息没有了。

最佳答案

首先:制作 然后:安装 而不是:make & make install

关于python - 替换发生在这里,因为完全扩展的 BINDIR 在配置中不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31048213/

相关文章:

python - 迭代嵌套的 FormField

python - 从文件 : how would you make this better? 中找到 N 最大的行

python - 有没有办法在测试集上计算 PCA 的解释方差?

python - 如何在事先不知道名称的情况下调用类的实例

numpy - 如何正确使用 anaconda 加速 GPU

python - 在 wsgi 环境中使用 Uipath 进行标准化不会产生标准化答案

python - pandas系列忽略索引的相等性

python - 能力k均值聚类?

python - 导入错误 : No module named 'tensorflow.core'

python - 如何在 django 中完成工作后删除模板中的 session 变量