Skip to content

Instantly share code, notes, and snippets.

@akirayou
Last active December 7, 2020 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akirayou/1aea6ba4bd5a5995ce9066f19f9d0fd7 to your computer and use it in GitHub Desktop.
Save akirayou/1aea6ba4bd5a5995ce9066f19f9d0fd7 to your computer and use it in GitHub Desktop.
#Microsoft storepython3.8をインストール
#windowsのファイル名255文字制限を解除しておく (以下のlongfilepath.regを実行)
#コマンドラインから以下を実行
pip install -U pip
pip install jupyterlab
#以下のpipコマンドはhttps://pytorch.org/get-started/locally/で作る。
pip install torch===1.7.0+cu110 torchvision===0.8.1+cu110 torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
#import numpyするとエラーが出る⇒numpy1.19.4がwindows特有のバグを踏んでるのでダウングレードしろと言われる
#将来的には解消されるので不要になるなる工程
#参考:https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html
pip install numpy==1.19.3
#以下のコマンドでjupyterを起動
python -m jupyterlab
#もしくはちゃんとpip時に警告されるPATHをちゃんと追加すると以下でも起動できる
#警告例: WARNING: The script f2py.exe is installed in 'C:\Users(略)local-packages\Python38\Scripts' which is not on PATH.
jupyter lab
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\]
"LongPathsEnabled"=dword:00000001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment