Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 2.26 KB

File metadata and controls

48 lines (40 loc) · 2.26 KB

PythonForWindows

Python for Windowsを使用してJupyter Notebook上でPowershellを使用する。

Installing on this script

インストール方法

.\WinPython.ps1 [スクリプトオプション]

スクリプトオプション

  • PythonVersion
    Python for Windowsのバージョンを指定します。
    必須: いいえ
    デフォルト: 3.13
    例: .\WinPython.ps1 -PythonVersion 3.12

  • InstallPwsh7SDK
    このスイッチオプションを指定すると、 Jupyter-PowerShellSDKをインストールします。
    例: .\Anaconda.ps1 -InstallPwsh7SDK

  • InstallDotnetInteractive
    このスイッチオプションを指定すると、.Net Interactiveをインストールします。
    例: .\WinPython.ps1 -InstallDotnetInteractive

  • CleanupDownloadFiles
    このスイッチオプションを指定すると、インストール後にダウンロードしたファイルを削除します。
    例: .\WinPython.ps1 -DoNotCleanupDownloadFiles

  • WorkingFolder [Folder Path]
    スクリプトで使用する作業フォルダを指定します。
    デフォルト: $PSScriptRoot (このスクリプトと同じフォルダ)
    必須: いいえ
    例: .\WinPython.ps1 -WorkingFolder C:\pathto\folder

インストール例

Set-Location $env:HOMEPATH
Invoke-WebRequest -UseBasicParsing `
    -Uri https://github.com/sakaztk/pwsh-notebook/raw/master/PythonForWindows/PythonForWindows.ps1 `
    -OutFile .\PythonForWindows.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\PythonForWindows.ps1 -CleanupDownloadFiles -WorkingFolder $env:HOMEPATH -Verbose
pip install jupyterlab-language-pack-ja-JP