0
1

More than 3 years have passed since last update.

ESA SNAPで Python API を利用するための環境構築でのPython 3.4.0インストールエラーの回避方法

Last updated at Posted at 2020-05-29

ESA SANPを利用し、Pythonを利用しようとした時のエラーの原因と解決方法

課題 ESA SNAPをインストール、Python APIを有効にするにチェック

しかし、サポートしているバージョンが2.7, 3.3, 3.4と古かった。

問題 asdfによるバージョン管理でpython 3.4.0インストールでエラー

asdf install python 3.4.0

インストールするも、次のエラーが表示

Ignoring ensurepip failure: pip 1.5.6 requires SSL/TLS

原因1 High Sierra以降の macOSはOPENSSLをデフォルトでインストールしなくなった

原因2 brew install opensslでインストールされるopenssl openssl@1.1/1.1.1dはpython 3.5 からサポート(3.4.0ではopensslライブラリバージョン1.0.2mとdevelパッケージが必要)

解決方法

  1. openssl@1.1/1.1.1dが既にインストール済みの場合のみ実施
brew uninstall --ignore-dependencies openssl@1.1
rm -rf /usr/local/etc/openssl
  1. git から直接ダウンロード
git clone https://github.com/Homebrew/homebrew-core.git
cd homebrew-core/
git checkout 75b57384 Formula/openssl.rb
brew install Formula/openssl.rb
  1. asdfが入っている事を前提としてますが、次のコマンドで3.4.0をインストール
asdf install python 3.4.0
asdf global python 3.4.0

以上
備忘録として

参考サイト
StackOverflow
* https://stackoverflow.com/questions/60413223/ignoring-ensurepip-failure-pip-requires-ssl-tls-python-3-4-x-with-pyenv-on-os
* https://stackoverflow.com/questions/59337838/openssl-1-0-2m-on-macos
* https://stackoverflow.com/questions/60413223/ignoring-ensurepip-failure-pip-requires-ssl-tls-python-3-4-x-with-pyenv-on-os

SNAP関連
* http://step.esa.int/main/
* http://130.158.200.25/~torarimon/?ESA+SNAP%A4%CE%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB%A4%C8%BB%C8%A4%A4%CA%FD

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1