[mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not available
寫前面的話
最近,折騰macbook關於python3安裝一些軟體包,被整的夠嗆。因為之前安裝過py3環境,所以直接想pip 安裝需要的依賴包,結果一上來就報錯了!
Can't connect to HTTPS URL because the SSL module is not available.
Brew安裝
需要安裝brew工具
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
但是結果不是很理想,安裝百分之20左右就報錯了。
大致是這樣:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
出現這個錯誤的原因是專案太久,tag資原始檔太大
解決方式: 命令終端輸入
git config --global http.postBuffer 524288000
幸運的事,終於可以下載了,但是又產生問題了:
Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Library/Taps/homebrew/homebrew-core --config core.autocrlf=false --depth=1 -q
Error: Failure while executing: /usr/local/bin/brew tap homebrew/core -q
這是啥情況,百度之好像是沒許可權,解決方法如下:
sudo chown -R apple:staff
⚠️裝置當前名稱 不然會報:
chown: apple: illegal user name
最後新增環境變數:
sudo vim .bash_profile
新增
export PATH=/usr/local/bin:$PATH
儲存,source .bash_profile使配置修改生效。
重新啟動終端
重新配置python環境
刪除舊python環境:
open /System/Library/Frameworks/Python.framework/Versions
刪除不需要的python版本
重新進行安裝
brew install python3
最後生成的python3 在/usr/local/bin下
pip 下載超時錯誤
pip._vendor.urllib3.exceptions.ReadTimeoutError HTTPSConnectionPool(host='files.pythonhosted.org', , port=443): Read timed out.
解決辦法:
pip install --default-timeout=1000 --upgrade pip
參考
相關文章
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not availableUITLSPythonAI
- WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.UITLSPythonAI
- 關於收到localhost modprobe: modprobe: Can't locate module ethX的錯誤localhost
- 連線MySQL錯誤:Can't connect to MySQL server (10060)MySqlServer
- SSL錯誤ssl connect error 35的解決方案Error
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- RMAN的"rman: can't open target"錯誤
- pip安裝錯誤:ImportError: No module named 'pkg_resources'ImportError
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- SAP ABAP 透過 https 消費外部 API 遇到錯誤訊息 SSSLERR_SSL_CONNECTHTTPAPI
- [jenkins]Can’t connect to window server – not enough permissionsJenkinsServer
- can't assign requested address 錯誤解決
- pip install 報錯UnicodeDecodeError: 'ascii' codec can't decode byteUnicodeErrorASCII
- mysql can't connect error about privilege----not root userMySqlError
- Can't connect to X11 window server usingServer
- 異常:Can't connect to MySQL server (10060)MySqlServer
- MySQL 5.5 關閉資料庫報錯"Can't connect to local MySQL server through socket"MySql資料庫Server
- ERROR in Entry module not found Error Can't resolve 'babel' in ' UseErrorBabel
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- MySQL錯誤1042-Can't get hostname for your addressMySql
- MySQL報錯'ERROR 2002 (HY000): Can't connect to local MySQL server through'MySqlErrorServer
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- MySQL連線提示Can't connect to local MySQL server through socketMySqlServer
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'MySqlServer
- Can't connect to X11 window server using DISPLAY variableServer
- Couldn't be opened because you don't have permission to view it 執行時報錯View
- 訪問 HTTPS 網站時的 SSL 錯誤解決方案HTTP網站
- SDK更新時的“https://dl-ssl.google.com refused”錯誤HTTPGo
- Can't debug c++ project because unable to static library start program *.libC++Project
- Can't connect to X11 window server using '127.0.0.1:0.0'Server127.0.0.1
- Error: The action can not be performed because ...could not be locked?ErrorORM
- 【crontab】“bad minute”及“errors in crontab file, can't install”錯誤處理Error
- kafka 錯誤: larger than available brokersKafkaAI
- eslint --fix 報錯 can't not find modulesEsLint
- MongoDB報錯:"assertion" : "can't map file memory"MongoDB
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- MySQL錯誤1042-Can't get hostname for your address解決方法MySql
- WebService系列之Axis Https(SSL)證書校驗錯誤處理方法WebHTTP