Windows General - ashBabu/Utilities GitHub Wiki
Virtual environment in windows
- Type
cmd
in the window menu bar to open up the command prompt pip install virtualenv
(ifpip
is not installed, typepython
in thecmd
and it will open MS store to installpython
)- Go to the desired folder (where you want to create your virtual env)
virtualenv 'env_name'
- Type the path(if needed) +
env_name\Scripts\activate
to activate
Set & Get Environment Variables using Windows PowerShell
- [Environment]::SetEnvironmentVariable("ROS_MASTER_URI","http://192.168.1.13:11311","User")
- [Environment]::SetEnvironmentVariable("ROS_IP","192.168.1.168","User")
- [Environment]::GetEnvironmentVariable("ROS_MASTER_URI","User")
- Detailed Instructions Microsoft Page
where ROS_MASTER_URI and ROS_IP are the environment variable names and the next field corresponds to their value. User is set for the particular user only and Machine is used for the all users in the computer.
Note: Most likely the Powershell has to be closed and reopened to reflect the changes
Also, cmd
, sysdm.cpl
, Go to Advanced
tab in System Properties
and edit EnvironmentVariables
ping not working when trying to connect from another computer
- Disable the public firewall (not the accepted answer but the 2nd comment)