擅长:python、mysql、java
<p>如果您从源代码构建Python,这只是一个依赖关系问题:由于您没有安装OpenSSL lib,Python在安装ssl模块时会自动失败。您可以在<strong>make</strong>命令的最终报告中看到它:</p>
<pre><code>Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 _ssl
_tkinter bsddb185 dbm
dl gdbm imageop
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
</code></pre>
<p>在任何标准的lib路径(<code>/usr/lib</code>,<code>/usr/local/lib</code>…)中安装OpenSSL lib就可以了。不管怎样,我就是这样做的:-)</p>