pipを使用して依存関係をインストールするときのsslエラーを解決する

エラーメッセージは次のとおりです。

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

エラーの理由は、Anacondaの環境変数の設定が十分でないためです。コンピューターのプロパティ->詳細なシステム設定->環境変数を開き、パスを見つけて編集します。完全な設定は次のとおりです。

D:\ProgramData\Anaconda3

D:\ProgramData\Anaconda3\Scripts

D:\ProgramData\Anaconda3\Library\bin

 

おすすめ

転載: blog.csdn.net/qq_33391629/article/details/102832743