2017-09-04 15 views
0

私はコーディングが初めてです。 python3用にpip3を使用してpython-forecastioをインストールしようとすると、以下のエラーが表示されます。pip3のインストール中にSSLエラーが発生しました

$ sudo pip3 install --trusted-host pypi.python.org python-forecastio 

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

Collecting python-forecastio 

    Could not fetch URL https://pypi.python.org/simple/python-forecastio/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping 

    Could not find a version that satisfies the requirement python-forecastio (from versions:) 

No matching distribution found for python-forecastio 
+0

理由は しようとすると、何のOpenSSL関連のソフトウェアインストールがないことであるのyumのopensslのopenssl-develの をインストール後、すべてがうまく動作します。 –

+0

実行しているセットアップの種類にSSLモジュールが組み込まれていませんか? – kichik

答えて

1

あなたが推測したように、SSLモジュールは利用できません。 問題を解決する簡単な方法は、Pythonを再インストールすることです。しかし、この単純なコード行を実行する代わりに、import sslがあります。エラーが発生した場合、Python 3のインストールが壊れているので、Pythonを再インストールする必要があります。エラーがなければ、easy_install-3.x (what ever the module or link you want)を使用してみてください( "x"の代わりにバージョンをインストールしたPythonを使用してください)。私は助けてくれるといいですね!

-Zeus

関連する問題