Python 3.x 在哪里可以找到./configure以运行命令./configure–;在Python3.2中使用zlib=/usr/include

Python 3.x 在哪里可以找到./configure以运行命令./configure–;在Python3.2中使用zlib=/usr/include,python-3.x,ubuntu-11.04,Python 3.x,Ubuntu 11.04,基于此,我需要运行以下命令 ./configure –with-zlib=/usr/include 问题:在哪里可以找到python 3.2中的配置 user@ubuntu:~$ls/usr/include/z*/usr/include/zconf.h /usr/include/zlibdefs.h/usr/include/zlib.h 您需要在python安装目录中运行/configure。这就是你打开源tarball的地方 cd /path/to/python3.2 ./configure

基于此,我需要运行以下命令

./configure –with-zlib=/usr/include
问题:在哪里可以找到python 3.2中的配置

user@ubuntu:~$ls/usr/include/z*/usr/include/zconf.h /usr/include/zlibdefs.h/usr/include/zlib.h


您需要在python安装目录中运行
/configure
。这就是你打开源tarball的地方

cd /path/to/python3.2
./configure --with-zlib=/usr/include
请注意,
--with zlib
参数的前缀是两个破折号,而不是一个

编辑:
/configure-h

--对于包[=ARG]使用包[ARG=yes]


在尝试了
/configure--with zlib=yes
(这也会产生错误)之后,我认为
包可能是一个非标准包。但是,要解决您的问题(确保python有zlib),您应该能够执行
/configure;制作sudo make安装
。您展示了您有
zlib.h
,因此应该重新安装支持zlib的python。我将查看是否可以在
--with PACKAGE
选项中找到更多信息,但这应该可以解决根本问题。

它对我不起作用。这似乎是无效的。请参阅我更新的帖子。配置:警告:无法识别的选项:-使用zlibYour答案解决我的问题,但该选项似乎无效。不是你的错:)
cd /path/to/python3.2
./configure --with-zlib=/usr/include