python - 在 pydistutils.cfg 中定义 install-platlib 的问题 --

标签 python

根据docs我应该能够在我的 ~/.pydistutils.cfg 中简单地定义它并关闭并运行。

[install]
install-base=$HOME
install-purelib=python/lib
install-platlib=python/lib.$PLAT
install-scripts=python/scripts
install-data=python/data

但是 - 当我这样做时,我只是得到这个错误......

error: install-base or install-platbase supplied, but installation scheme is incomplete

但我明确地遵循了文档。任何人都可以阐明为什么会发生这种情况吗?以及如何解决??

最佳答案

你必须包括这个..

install-headers=python/??

所以最后看起来是这样的..

[install]
install-base=$HOME
install-purelib=python/lib
install-platlib=python/lib.$PLAT
install-scripts=python/scripts
install-headers=python/include
install-data=python/data

关于python - 在 pydistutils.cfg 中定义 install-platlib 的问题 --,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3560865/

相关文章:

python - 如何在 Python 中将此脚本与此功能集成(Instagram)

python - AWS Lambda - 如何从 2 个不同的云监视触发器调用不同的函数

Python f.read() 和 Octave fread()。 => 读取显示相同值的二进制文件

python - Python 虚拟机 (CPython) 是否将字节码转换为机器语言?

python:AND执行顺序

python - 在 Mac OS X 上捕获 Python 子进程输出时出现问题

python - AppEngine python 发送电子邮件 api 被 Gmail 电子邮件阅读器标记为垃圾邮件

python - 您的 "must-have"金融 Python 包是什么?

python - 如何订购连接列表

python - 如何在IBM Cloud功能中运行docker镜像?