ヤムインストールのpython3後に再設定する必要があります
yum設定
vimのは/ usr / binに/ YUM #!は/ usr / binに/ Pythonの#前に変更
#!は/ usr / binに/ python2の # 私は修正
vimのは/ usr / libexecに/ urlgrabber-EXT- ダウン #!は/ usr / binに/ Pythonの#前に変更 #!は/ usr / binに/ python2番号の変更後
設定PIP3
LN -sは/ usr / local / python3Dir / binに/ PIP3は/ usr / binに/ピップ
ピップは、エラーを報告し使用します。
PIPは、TLS / SSLを必要とする場所で構成されている、しかし、PythonでSSLモジュールは使用できません。
前にインストールされていないのでPythonやopensslのopensslのバージョンをインストールすることは低すぎます。
OpenSSLをアップグレード
#は、インストールパッケージダウンロードOpensll wgetのを HTTPS:// www.openssl.org/source/openssl-1.1.1c.tar.gz #-Extractingアーカイブ タール opensslを-zvxf 1.1 .1c。タール.gzを ディレクトリのopensslへ#スイッチ CDのopensslの - 1.1 .1c #OpenSSLがインストールパスを指定します 。/ configに--prefix =は/ usr / local / opensslのNO- のzlib 作ります 作る インストール
バックアップ元の構成
MVは/ usr / binに/ opensslのは/ usr / binに/ openssl.bak MVは/ usr /含める/ opensslの/ /usr/include/openssl.bak
新しい設定
LN -sは/ usr / local / opensslの/含める/ opensslのは/ usr / /含まopensslの LN -s /usr/local/openssl/lib/libssl.soを。1.1は/ usr / local / lib64に/ libssl.so LN -sは/ usr / local / opensslの/ binに/ opensslのは/ usr / binに/ opensslの
システム構成OpenSSLライブラリの検索パスを修正書きます
エコー " は/ usr / local / opensslの/ libに" >>は/ etc / LD .so.conf
変更を有効に/etc/ld.so.confに
ldconfigを-v
ビューopensslのバージョン
opensslのバージョン
pythonを再インストールします
#のpython3のインストールパスを指定します。 。/設定--prefix =は/ usr / local / python3Dir --with-OpenSSLの=は/ usr / local / OpenSSLの 作ります 作る インストール
再インストールした後、ピップは通常通り使用することができます。