pipを使用してFlaskをインストールしようとしています。私はthis tutorialに続き、Python 3のコンパイルを指示しています。pip install Flask
は、SSLモジュールが利用できないというエラーを出し、Flaskのインストールに失敗します。カスタムPythonを使ってpipでインストールするとSSLを使用できません
コンパイル時に、私はsudo apt-get install zlib1g-dev
にzlibをコンパイルする必要がありました。 SSLモジュールをコンパイルするために何かをインストールする必要がありますか?ミントを含む
$ pip install flask
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting flask
Could not fetch URL https://pypi.python.org/simple/flask/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not availabe. - skipping
Could not find a version that satisfies the requirement flask (from versions:)
No matching distribution found for flask
$
私は、すべての依存関係を追加する前に仮想環境を作成していたと思います。プロジェクトを削除してからすべての依存関係を修正しなければならなかったので、新しいものを作ってそれをうまく実行することができました – user3412695