A very quick lesson for getting started with Python.
Written by Joseph Plummer for demonstration purposes only.
I tested this code on Ubuntu 20.04 through WSL2, inside my Windows terminal. I have an NVIDIA GPU, working on Windows, WSL2, and Linux. This code should work for all operating systems. If the following settings fail, conda create an environment yourself, and install the pip packages manually/through git. Also, make sure you have your git SSH keys set (you may have to do this for each terminal/git browser/VScode that you operate).
- Ensure SSH is setup for Git.
- Navigate to folder you want to clone repository to.
git clone [email protected]:joeyplum/python-intro.git
Navigate to the folder containing this code inside the terminal. Run the following commands in sequence to create your environment.
conda update -n base -c defaults conda
make conda
conda activate python-intro
make pip
Install XLaunch in Windows if not done already.
export DISPLAY=
grep -oP "(?<=nameserver ).+" /etc/resolv.conf:0.0
export LIBGL_ALWAYS_INDIRECT=1
- Open XLaunch and set up (tick all three boxes)
- Test with
xeyes
To uninstall, run the following commands:
conda activate
make clean