- install Windows Terminal from Windows Store
- install WSL with Ubuntu 22.04 lTS
- start ubuntu terminal
sudo apt install git
- set git to globally suppress auto-crlf, and also set your name and email address in the config
- create a new SSH key
- start ssh-agent
- install visual studio 2022
- start windows cmd terminal
- type
where python
to find the monumentally inconvenient python helper - C: and D: are at /mnt/c/ and /mnt/d/
- in the ubuntu terminal
sudo rm /mnt/c/path/to/python
- in the ubuntu terminal
sudo rm /mnt/c/path/to/python3
- install miniconda, with the Python 3.10 option. select the "don't add to PATH" option.
- In Windows terminal, create three new defaults, with names and start up commands as follos
conda
Command Line:%windir%\System32\cmd.exe "/K" C:\path\to\miniconda3\Scripts\activate.bat C:\path\to\miniconda3
- start a conda terminal, verify
where python
points into conda, and if you typecl
it's unknown vs2022
Command Line:cmd.exe /k "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64
- start a vs2022 terminal and verify that if you type
where python
there is no pyton, and thatcl
is known vs2022+conda
Command Line:%windir%\System32\cmd.exe /k "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64 && C:\path\to\miniconda3\Scripts\activate.bat C:\path\to\miniconda3
- start a new terminal with vs2022+conda, verify
where python
andcl
are both known conda create -n usd310 python=3.10
conda activate usd310
conda install git
- set git to globally suppress auto-crlf, and also set your name and email address in the config
- getting an ssh-agent running on windows is tricky, so for simplicity, I'm just using the ubuntu instance
conda install nasm
conda install pyopengl
conda install jinja2
pip install PySide6
- the usd310 env is now ready to go, and you can use it in either the
conda
shell or thevs2022+conda
shell - note that cmake 3.24 will be available from the vs2022 installation so it doesn't need to be separately installed.
- USD dev is vs2022 compatible. main is not yet compatible.
Last active
January 9, 2023 20:22
-
-
Save meshula/ae8c78f0933afa5d04fd72a6dbe2a0b0 to your computer and use it in GitHub Desktop.
usd-windows-2023.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment