-
Notifications
You must be signed in to change notification settings - Fork 15
Getting Started
In this section, we will see how to setup the environment for Open SVP.
These are broad view of the steps you need to follow to setup an environment for Open SVP (there are more explanation for each step further in the report) :
- Setup Path for python
- Open a cmd window
- Go to the directory of Open SVP with a cd command
- Use pip to install virtual env
- Create a new environment with virtualenv
- Activate the new environment
- Use pip to install all the required libraries in the new environment
- Initialise open SVP by compiling the ui.py module
Something important to know is that, if you have already setup the environment by following these steps before and you want to use Open SVP again. You only have to do these steps :
- setup Path for python (if you don’t have admin rights)
- Open a cmd window
- Go to the directory of Open SVP with a cd command
- Activate the new environment
- Initialise open SVP by compiling the ui.py module
If you are a beginner in python programming there are essential things that need to be set before continuing to the next step. For using python properly and to make things easy for us. It is important to add the C:\Python27 directory and C:\python27/Scripts directory to the windows PATH Environment variable. To do this, you normally need the admin rights of your computer, but there is an other way around which will be explain.
First, you need to open Windows PowerShell by searching windows PowerShell in the search bar. Next, you can type $env:Path to see the different paths already in the environment variable. To add the two directory you can use to command:
$env:Path += ";C:\Python27\Scripts;C:\Python27 "
As you can the two directory path are split by ;
.
To open the cmd window, go to the research bar and type cmd
and it should be the first one. If you are using Windows PowerShell, instead of opening a new cmd window, just type cmd
in your Windows PowerShell session.
Getting started