Skip to main content

Setting and unsetting an environment variable in Windows

Using the command line

Set an environment variable
1. Run > cmd
2. Type:

set <variable name>=<value>

Example:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21

3. Optional: Double-check by viewing the value of the environment variable by typing:
set

Unset an environment variable
1. Run > cmd
2. Type:
set <variable> =

Example: 
set JAVA_HOME=

3. Optional: Double-check by viewing the value of the environment variable by typing:
set

Using the GUI
Set an environment variable
1. Right click My Computer > Properties > Advanced system settings
2. Click Environment Variables... button (bottom right of window)
3. Click New...
4. Enter Variable Name and Variable Value

Unset an environment variable
1. Right click My Computer > Properties > Advanced system settings
2. Click Environment Variables... button
3. Click the variable you want to unset
4. Click the Delete button

Comments

Popular posts from this blog

The No-Fuss Setup Guide for Secure and Private AI Challenge 2019 (Windows)

Warning : This page is still under construction but I'm publishing it so that I can easily read it online. Part 1: Software that needs to be installed 1. git You can segue into doing Part 2 then come back to #2, 3 or 4, if you like :) 2. [Optional]  GitHubDesktop   - UI for git 3. [Optional] python - you can skip this if you're going to install Anaconda 4. Anaconda - needed to install PyTorch Make sure you're downloading the version that matches your OS In my case, Mac was selected by default even if my OS was Windows. Since I didn't double check, I downloaded the Mac version by mistake. So, I had to go back and download the Windows version :( pip - another way to install PyTorch if you prefer to use pip or if Anaconda is not available for some reason  Note: according to the PyTorch site, Anaconda is the recommended package manager because it will provide you all of the PyTorch dependencies in one, sandboxed install, including Python and pip. This...

Secure and Private AI Scholarship Challenge from Facebook

Got accepted! Yay! :D

Lesson 1: Deep Learning with PyTorch

What Do These Terms Mean??? Deep Learning -  a subset of machine learning where artificial neural networks, algorithms inspired by the human brain, learn from large amounts of data. - Similarly to how we learn from experience, the deep learning algorithm would perform a task repeatedly, each time tweaking it a little to improve the outcome. - We refer to ‘deep learning’ because the neural networks have various (deep) layers that enable learning. - Just about any problem that requires “thought” to figure out is a problem deep learning can learn to solve. PyTorch  - a Python library for building deep learning models and other machine learning algorithms. - released in early 2017 - an open source project by the Facebook AI Research team - being adopted by teams everywhere in industry and academia Tensor - the main data structure of PyTorch autograd - a module that PyTorch uses to calculate gradients for training neural networks. backpropagation - ? - famil...