python:python_install

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
python:python_install [2020/04/10 10:22] ともやんpython:python_install [2020/08/27 09:21] ともやん
行 1: 行 1:
 <html> <html>
   <style>   <style>
-    #result pre { +    #result pre, #mincode pre { 
-      overflow: scroll; +      overflow: hidden;
-      overflow-x: hidden;+
       font-size: 10px;       font-size: 10px;
     }     }
-    #result_long pre { +    #result_long pre, #mincode_long pre  
-      height: 400px;+      height: 250px;
       overflow: scroll;       overflow: scroll;
       overflow-x: hidden;       overflow-x: hidden;
       font-size: 10px;       font-size: 10px;
 +    }
 +    #mintbl table {
 +      font-size: 12px;
 +    }
 +    #result a, #mincode a, #result_long a, #mincode_long a, #mintbl a {
 +      mergin: 0;
 +    }
 +    .dokuwiki .plugin_wrap table {
 +      width: auto;
 +    }
 +    #logo {
 +      background-color: white;
 +      padding: 10px;
 +      width: fit-content;
 +    }
 +    #logo p {
 +      margin: 0;
     }     }
   </style>   </style>
行 39: 行 55:
  
 **python**、**python27** をインストールする。\\ **python**、**python27** をインストールする。\\
-<code>+<code powershell>
 $ scoop install python python27 $ scoop install python python27
 </code> </code>
 <WRAP prewrap 100% #result_long> <WRAP prewrap 100% #result_long>
-<code>+<code powershell>
 Installing 'lessmsi' (1.6.91) [64bit] Installing 'lessmsi' (1.6.91) [64bit]
 lessmsi-v1.6.91.zip (495.0 KB) [==============================================================================] 100% lessmsi-v1.6.91.zip (495.0 KB) [==============================================================================] 100%
行 103: 行 119:
 </code> </code>
 </WRAP> </WRAP>
 +
 +**Visual Studio** などの外部アプリケーションが **Python** を自動検出できるようにする。\\
 +<WRAP prewrap 100% #mincode>
 +<code>
 +Allow applications and third-party installers to find python by running:
 +"C:\Users\tomoyan\scoop\apps\python\current\install-pep-514.reg"
 +</code>
 +</WRAP>
 +<wrap hi>**重要 (翻訳):**</wrap>\\
 +<WRAP prewrap 100% #mincode>
 +<code>
 +次のコマンドを実行して、アプリケーションとサードパーティのインストーラーがPythonを見つけられるようにします:
 +"C:\Users\tomoyan\scoop\apps\python\current\install-pep-514.reg"
 +</code>
 +</WRAP>
 +以下のコマンドを実行して、Windows レジストリに **Python** を登録する。\\
 +([[https://www.python.org/dev/peps/pep-0514/|PEP 514 -- Python registration in the Windows registry | Python.org]])\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ . $env:USERPROFILE\scoop\apps\python\current\install-pep-514.reg
 +</code>
 +</WRAP>
 +
 +以下の問い合わせで「はい」をクリックする。\\
 +{{python:regedit_pep-514_001.png?400|RegEdit Python PEP-514 001}}\\
 +
 +「OK」をクリックする。\\
 +{{python:regedit_pep-514_002.png?400|RegEdit Python PEP-514 002}}\\
 +
 +<WRAP prewrap 100% #mincode>
 +必要に応じて RegEdit で以下のキーを確認する。\\
 +<code>
 +HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore
 +</code>
 +</WRAP>
 +{{python:regedit_pep-514_003.png?640|RegEdit Python PEP-514 003}}\\
  
 **python** の動作確認。\\ **python** の動作確認。\\
  • python/python_install.txt
  • 最終更新: 2020/09/11 16:59
  • by ともやん