๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

์•„๋‚˜์ฝ˜๋‹ค ํ™˜๊ฒฝ Python์—์„œ SSL DLL ๊ด€๋ จ ์—๋Ÿฌ ํ•ด๊ฒฐ. SSLError, DLL load failed while importing _ssl

by ๐Ÿงž‍โ™‚๏ธ 2021. 2. 19.
๋ฐ˜์‘ํ˜•

์—๋Ÿฌ ์ƒํ™ฉ1:

Max retries exceeded with url: /api/v3/ping (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

์—๋Ÿฌ ์ƒํ™ฉ2:

DLL load failed while importing _ssl: ์ง€์ •๋œ ๋ชจ๋“ˆ์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

 

๋‘ ๊ฐœ์˜ ์—๋Ÿฌ๋Š” ๊ฐ๊ธฐ ๋‹ค๋ฅธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๋Š” ์ƒํ™ฉ์— ๋ฐœ์ƒํ–ˆ๋‹ค. ํ•˜๋‚˜๋Š” binance ๊ด€๋ จ, ํ•˜๋‚˜๋Š” ccxt ๊ด€๋ จ์ด์—ˆ๋‹ค. ๊ฐ™์€ ๋ฌธ์ œ๋กœ ๋ณด์—ฌ์„œ ํ•˜๋‚˜๋กœ ๊ด€ํ†ตํ•˜๋Š” ํ•ด๊ฒฐ์ฑ…์„ ์ฐพ์•„๋ƒˆ๊ณ , ์ด์— ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ๊ณต์œ ํ•œ๋‹ค.

 

 SSL ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

 

{anaconda directory}/Library/bin ์—์„œ ์•„๋ž˜์˜ ํŒŒ์ผ ๋‘๊ฐœ๋ฅผ {anaconda directory}\envs\{env name}\DLLs ํด๋”๋กœ ๋ณต์‚ฌํ•œ๋‹ค. {anaconda directory}๋Š” ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ ๋””๋ ‰ํ† ๋ฆฌ ์œ„์น˜๋ฅผ ๋งํ•˜๋ฉฐ, {env}๋Š” ๋ณธ์ธ์ด ์‹คํ–‰ํ•˜๊ณ  ์žˆ๋Š” ํ™˜๊ฒฝ์˜ ์ด๋ฆ„์„ ๋งํ•œ๋‹ค. ํ•„์ž์˜ ๊ฒฝ์šฐ,

C:\Anaconda3์™€ C:\Anaconda3\envs\trader ์™€ ๊ฐ™์€ ์‹์ด์—ˆ๋‹ค.

libcrypto-1_1-x64.dll
libssl-1_1-x64.dll

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€