-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Hi, I build this project on Win10. I have built python.exe successfully. And install pip using ensurepip. But when I install numpy with pip, there have errors as follows:
`WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping`
Then I run this command:
python -m ssl
Error are:
Traceback (most recent call last):
File "D:\Project\Python\python-cmake-buildsystem\python-install\Lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Project\Python\python-cmake-buildsystem\python-install\Lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Project\Python\python-cmake-buildsystem\python-install\Lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: 找不到指定的模块。
And I found there is a fille called _ssl.pyd in the folder (this path is added into PATH variable):
"<some_path>\python-install\Lib\lib-dynload\_ssl.pyd"
Beside I also add the path which included the following file to the PATH variable:
libcrypto-1_1-x64.dll, libssl-1_1-x64.dll
But it still can't find the ssl module.
These information are from CMake-GUI (There is no error about OpenSSL):
OPENSSL_LIBRARIES=D:/Project/Slicer/Slicer-5.6.2-build/OpenSSL-install/Release/lib/libssl.lib;D:/Project/Slicer/Slicer-5.6.2-build/OpenSSL-install/Release/lib/libcrypto.lib
OPENSSL_INCLUDE_DIR=D:/Project/Slicer/Slicer-5.6.2-build/OpenSSL-install/Release/include
The following extensions will NOT be built:
cPickle (not set: IS_PY2)
_crypt (not set: HAVE_LIBCRYPT)
cStringIO (not set: IS_PY2)
future_builtins (not set: IS_PY2)
_hotshot (not set: IS_PY2)
operator (not set: IS_PY2)
strop (not set: IS_PY2)
_uuid (not set: UUID_LIBRARY HAVE_UUID_H OR HAVE_UUID_UUID_H)
fcntl (not set: UNIX)
grp (not set: UNIX)
nis (not set: UNIX HAVE_LIBNSL)
posix (not set: UNIX)
pwd (not set: UNIX)
resource (not set: UNIX)
spwd (not set: UNIX HAVE_GETSPNAM HAVE_GETSPENT)
syslog (not set: UNIX)
termios (not set: UNIX)
_posixsubprocess (not set: UNIX)
_scproxy (not set: APPLE HAVE_LIBCOREFOUNDATION HAVE_LIBSYSTEMCONFIGURATION)
linuxaudiodev (not set: LINUX IS_PY2)
ossaudiodev (not set: LINUX)
_posixshmem (not set: UNIX)
_subprocess (not set: IS_PY2)
_distutils_findvs (not set: HAS_DISTUTILS_FINDVS_MODULE_SRC)
_bsddb (not set: IS_PY2 DB_INCLUDE_PATH DB_LIBRARY)
_curses_panel (not set: CURSES_LIBRARIES PANEL_LIBRARIES HAVE_PANEL_H OR HAVE_NCURSES_PANEL_H)
_curses (not set: CURSES_LIBRARIES)
_dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
_gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H)
_tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH)
Could someone helps me?