Python pip在集群openssl问题上安装本地问题

时间:2017-09-06 16:15:45

标签: linux python-3.x openssl pip cluster-computing

我正在尝试将python3和pip作为我自己的用户安装在群集上。

make测试失败:

    FAILED (failures=1)
test test_dbm_dumb failed
7 tests failed again:
    test_dbm_dumb test_import test_mailbox test_os test_pathlib
    test_stat test_tarfile

Total duration: 9 min 21 sec
Tests result: FAILURE
make: *** [test] Error 1

这是与错误

有关的其他一些信息
    INFO: Can't locate Tcl/Tk libs and/or headers
warning: building with the bundled copy of libffi is deprecated on this platform.  It will not be distributed with Python 3.7

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2                  _curses               _curses_panel      
_dbm                  _gdbm                 _lzma              
_sqlite3              _ssl                  _tkinter           
readline                                                       
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
atexit                pwd                   time               

但是我继续使用make install。

看来有openSSL问题。请参阅以下内容:

  -bash-4.2$ python3 get-pip.py --user
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Requirement already up-to-date: pip in ./tools/python/lib/python3.6/site-packages
Collecting wheel
  Could not fetch URL https://pypi.python.org/simple/wheel/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement wheel (from versions: )
No matching distribution found for wheel
-bash-4.2$ python3 pip
python3: can't open file 'pip': [Errno 2] No such file or directory
-bash-4.2$ ldd /home/CAM/anesta/tools/openssl/lib/libssl.so.1.1 
    linux-vdso.so.1 =>  (0x00007ffe1796d000)
    libcrypto.so.1.1 => /home/CAM/anesta/tools/openssl/lib/libcrypto.so.1.1 (0x00007fc88093b000)
    libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fc88072b000)
    libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fc88050f000)
    libc.so.6 => /usr/lib64/libc.so.6 (0x00007fc88014e000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc88102f000)

所以看来openssl已经安装好了。为什么make测试说没有ssl?另外我安装了bzip2,python说也没找到。

我必须在这里找到一些东西。

谢谢, 亚历

编辑:python中没有安装SSL模块

    -bash-4.2$ python3 -c "import ssl"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/CAM/anesta/tools/python/lib/python3.6/ssl.py", line 101, in <module>
    import _ssl             # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'

0 个答案:

没有答案