Installing the IDE ❖ Windows - EPFL-MICRO-315/TPs-Wiki GitHub Wiki
- The installer was tested on Windows Pro 10 and 11
- Under Windows, the installer is the most complicated, using 3 parts, facilitating code development and maintenance, and essentially the user experience:
- The windows.bat script allows to manage Group Polices: It will save and modify the PowerShell Policy in order to be able to launch Powershell scripts At the end it will restore the original Policy It will launch 2 PowerShell scripts:
- Powershell scripts:
- The script install-pyenv-win.ps1 allowing the installation of PyEnv
- The script DoNotLaunchDirectly.ps1, creating the e-puck2 virtual Python 3.11.2 environment dedicated to the TPs
- Graphical installer, setting up the E-puck2 IDE
-
download the .zip of the setup program here
-
extract the .zip (<right-click> - extract)
-
launch with the Administrator rights the Create_VSCode_e-puck2-RefTag/windows.bat script. The simplest way is to do a <Right-click> on this batch in the Windows Explorer and Run as administrator
-
💡 these 2 windows pop-up because the install script is not signed, however there are no risk so you can:
- click on
More info
- then
run anyway
- click on
-
Enter Yes in order to accept to launch this batch as Administrator.
Here follow the messages displayed in the console for information:
Save actual PowerShell policy ...
... done
Modify PowerShell policy in order to run scripts ...
... done
Installer started in C:\Users\danielburnier\Downloads\Create_VSCode_e-puck2-RefTag >>>>>>
Install or update PyEnv: starting >>>>>>
... PyEnv 3.1.1 will be used.
>>>>>> Install or update PyEnv: done
Install Python 3.11.2: starting >>>>>>
:: [Info] :: Mirror: https://www.python.org/ftp/python
:: [Downloading] :: 3.11.2 ...
:: [Downloading] :: From https://www.python.org/ftp/python/3.11.2/python-3.11.2-amd64.exe
:: [Downloading] :: To C:\Users\danielburnier\.pyenv\pyenv-win\install_cache\python-3.11.2-amd64.exe
:: [Installing] :: 3.11.2 ...
:: [Info] :: completed! 3.11.2
>>>>>> Install Python 3.11.2: done
Rename Python 3.11.2: starting >>>>>>
>>>>>> Rename Python 3.11.2: done
Set local PyEnv on e-puck2: starting >>>>>>
>>>>>> Set local PyEnv on e-puck2: done
Install required Python packages: starting >>>>>>
Looking in links: c:\Users\DANIEL~1\AppData\Local\Temp\tmpplj_69yx
Requirement already satisfied: setuptools in c:\users\danielburnier\.pyenv\pyenv-win\versions\e-puck2\lib\site-packages (65.5.0)
Requirement already satisfied: pip in c:\users\danielburnier\.pyenv\pyenv-win\versions\e-puck2\lib\site-packages (22.3.1)
Requirement already satisfied: pip in c:\users\danielburnier\.pyenv\pyenv-win\versions\e-puck2\lib\site-packages (22.3.1)
Collecting pip
Using cached pip-24.0-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Successfully installed pip-24.0
Collecting PyQT5
Using cached PyQt5-5.15.10-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
Collecting termcolor
Using cached termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Collecting requests
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting distro
Downloading distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
Collecting PyQt5-sip<13,>=12.13 (from PyQT5)
Using cached PyQt5_sip-12.13.0-cp311-cp311-win_amd64.whl.metadata (524 bytes)
Collecting PyQt5-Qt5>=5.15.2 (from PyQT5)
Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB)
Collecting charset-normalizer<4,>=2 (from requests)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests)
Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Using cached PyQt5-5.15.10-cp37-abi3-win_amd64.whl (6.8 MB)
Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Downloading distro-1.9.0-py3-none-any.whl (20 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Using cached PyQt5_sip-12.13.0-cp311-cp311-win_amd64.whl (78 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Installing collected packages: PyQt5-Qt5, urllib3, termcolor, PyQt5-sip, idna, distro, charset-normalizer, certifi, requests, PyQT5
Successfully installed PyQT5-5.15.10 PyQt5-Qt5-5.15.2 PyQt5-sip-12.13.0 certifi-2024.2.2 charset-normalizer-3.3.2 distro-1.9.0 idna-3.6 requests-2.31.0 termcolor-2.4.0 urllib3-2.2.1
>>>>>> Install required Python packages: done
Finally launch python installer
WARNING:root:Log saved at: install-2024-02-19-22-51-56.log
until a graphical installer should appear. Click on Next >
-
set the install path and workplace path
- ⚠ no spaces are allowed in the paths
- by default, the install path is under
C:\Users\username\AppData\Roaming - by default, the workplace path is under
C:\Users\username\Documents\
-
change advanced installer settings
- ⚠ ADVANCED users only
- ⚠ do not change unless you know what you are doing
-
proceed with the installation
-
wait for the installation to complete (we suggest you to grab a cup of coffee ☕ / maté 🧉)
- ⚠ Look out for any error (warnings can be ignored)
- ⚠ Keep an eye on the terminal as it is likely to ask for a session password
-
Once the progress bar is completed, you can click on
Finish. Congratulations ! The IDE VSCode EPuck2 has been successfully installed 🥇
When you first launch the IDE VSCode EPuck2, the windows firewall will alert you about some functionalities that has been blocked
- click on
cancel