[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
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- SSL錯誤ssl connect error 35的解決方案Error
- SAP ABAP 透過 https 消費外部 API 遇到錯誤訊息 SSSLERR_SSL_CONNECTHTTPAPI
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- Python3.7使用pip install xxxx報錯:UnicodeDecodeError: 'gbk' codec can't decode bytePythonUnicodeError
- Can't debug c++ project because unable to static library start program *.libC++Project
- PIP3安裝報錯nicodeDecodeError: 'ascii' codec can't decode byte 0xc3ErrorASCII
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- kafka 錯誤: larger than available brokersKafkaAI
- 訪問 HTTPS 網站時的 SSL 錯誤解決方案HTTP網站
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- eslint --fix 報錯 can't not find modulesEsLint
- spring中No bean named xxx available錯誤SpringBeanAI
- 使用雲伺服器配置MariaDB環境,Navicat遠端連線一直出錯誤程式碼 "2002 - Can't connect to server on '' (10060)"伺服器Server
- Fatal NI connect error 12170 錯誤Error
- WebService系列之Axis Https(SSL)證書校驗錯誤處理方法WebHTTP
- 高防上傳HTTPS證書出現“引數格式錯誤”報錯的解決辦法 – HTTPS SSL 教程HTTP
- Python報錯:UnicodeDecodeError: 'gbk' codec can't decode byte ...PythonUnicodeError
- Unlucky because now anybody can shoot with their hot fix
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- 【ERROR】su user報'This account is currently not available'錯誤 for linuxErrorAILinux
- pip 安裝selenium報錯:Cannot fetch index base URL https://pypi.python.org/simple/怎麼解決??IndexHTTPPython
- pip install ... ERROR: UnicodeDecodeError: ‘gbk‘ codec can‘t decode/ python setup.py egg_info CheckErrorUnicodePython
- 使用@Service註解出現No bean named 'xxxx' available]錯誤BeanAI
- Mac電腦下使用Socket報錯socket丟擲Can’t assign requested address解決Mac
- Python connect zookeeper use the kazoo modulePython
- Python讀取csv檔案出現解碼錯誤UnicodeDecodeError: ‘utf-8‘ codec can‘t decodPythonUnicodeError
- PyMySQL 獲取資料 'utf-8' codec can't decode byte 0xed in position 2: 錯誤MySql
- Navicat 連線 MySQL 失敗:2002-can‘t connect to server on localhost(10061)問題解決MySqlServerlocalhost
- IllegalArgumentException:Unknown URL content 錯誤的原因Exception
- Android開發:Android虛擬機器啟動錯誤Can't find 'Linux version ' string in kernel image fileAndroid虛擬機Linux
- SVN-Unable to connect to a repository at URL
- [HTTPS]SSL/TLSHTTPTLS