Skip to main content

Posts

Showing posts with the label Python

How to add Python Path in Windows Environment Variables

I got to do this when I need to migrate my customer's Nexus 1000v to the VMWare vDS. Go through the migration documents, first step is to install Python and add the python to the Windows Environment Variable. Python version is 2.7. My Windows Version = Windows Server 2008 R2 Enterprise To add python into the Windows environment variable and then start the python from command prompt. Go to the Go to Control Panel > System and Security > System . Select Advanced system settings. Select Environment Variables as shown in following figure. Under system variable, Click New Add first variable as  Variable Name =  PATH Variable Value =  C:\Python27;%PATH% Add second variable as Variable Name =  PYTHONPATH Variable Value =  %PYTHONPATH%;C:\Python27 Click OK to save newly added two variables, open command prompt window and type python and you should be on the Python prompt.