Попытка собрать пакет spark-sklearn
для conda, ошибка SSL,
Если это пакет в пунктах, я пропускаю сертификат вот так:
pip --trusted-host pypi.org --trusted-host files.pythonhosted.org
но когда я делаю
>> conda skeleton pypi spark-sklearn
работает с "ssl certificate verify_failed"
Leaving build/test directories:
Work:
/home/spothineni/anaconda3/conda-bld/skeleton_1557931569827/work
Test:
/home/spothineni/anaconda3/conda-bld/skeleton_1557931569827/test_tmp
Leaving build/test environments:
Test:
source activate /home/spothineni/anaconda3/conda-bld/skeleton_1557931569827/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place
Build:
source activate /home/spothineni/anaconda3/conda-bld/skeleton_1557931569827/_build_env
Traceback (most recent call last):
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 453, in wrap_socket
cnx.do_handshake()
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1915, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1647, in _raise_ssl_error
_raise_current_error()
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
conn.connect()
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/connection.py", line 344, in connect
ssl_context=context)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 344, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 459, in wrap_socket
raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='pypi.io', port=443): Max retries exceeded with url: /pypi/spark-sklearn/json (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/spothineni/anaconda3/bin/conda-skeleton", line 11, in <module>
sys.exit(main())
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/conda_build/cli/main_skeleton.py", line 65, in main
return execute(sys.argv[1:])
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/conda_build/cli/main_skeleton.py", line 61, in execute
version=args.version, config=config)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/conda_build/api.py", line 289, in skeletonize
recursive=recursive, config=config, **kwargs)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/conda_build/skeletons/pypi.py", line 246, in skeletonize
pypi_resp = requests.get(package_pypi_url, verify=not _ssl_no_verify())
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/spothineni/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='pypi.io', port=443): Max retries exceeded with url: /pypi/spark-sklearn/json (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))