-
Notifications
You must be signed in to change notification settings - Fork 10
/
install_pyper.bat
41 lines (33 loc) · 1.31 KB
/
install_pyper.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
REM Make sure you have a good internet connection
REM Download and install anaconda python 2.7 64 bits
REM Download and unzip pyper
REM cd pyper # assuming the folder is called pyper and we are in the parent folder
REM TODO: use json option of conda to parse results
SET pyper_folder=%cd%\pyper
REM Make sure the environment does not exist
SET env_name=pyper_env
echo "Updating anaconda"
conda update -y -q -n base conda
REM if base environement does not exist, use conda update -y -q conda
REM Make sure the environment does not exist by hand on windows
REM conda info --envs | grep %env_name%
echo "Creating environment. This may take some time."
conda create -y -q -n %env_name% python=3.5 anaconda
activate %env_name%
echo "Done."
echo "Installing dependencies. This may take some time. "
conda install -y -q -n pyper_env numpy scipy scikit-image python-dateutil pyparsing matplotlib PyOpenGL configobj
conda install -y -q -n pyper_env -c conda-forge tqdm ffmpeg opencv=3.3.0 pyqt=5.6
echo "Done."
echo "Installing Pyper."
python setup.py install
REM assumes success
deactivate
echo Installation finished
echo To use pyper type the following in a terminal:
echo "cd c:\users\<yournamehere>"
echo "source activate pyper_env"
echo and then
echo "python -m pyper.gui.tracking_gui"
echo or
echo "python -m pyper.cli.tracking_cli"