Bonjour,
Peut-on lancer des codes python à partir du serveur ? Si oui comment s'y prend on ? Que faut-il installer ?
Merci par avance ![]()
Bonjour, vous avez un VPS ?
Si non, on peut exécuter des script CGI en python :
- https://fr.wikibooks.org/wiki/Programmation_Python/L'interface_CGI
- https://openclassrooms.com/courses/apercu-de-la-cgi-avec-python
C'est tout à fait possible à partir d'un mutualisé.
Comment fait-on pour choisir sa version ? la doc dit qu'on a le choix entre 2.7 et 3.4 mais /usr/bin/python3.4 ne marche pas…
Pour python 2.x : /usr/bin/python
Pour python 3.4 : /usr/bin/python3
```text
/usr/bin/python3.4 --version
Python 3.4.2
ls -l /usr/bin/python3*
lrwxrwxrwx 1 root root 9 nov. 30 2014 /usr/bin/python3 -> python3.4
-rwxr-xr-x 2 root root 4476664 juin 25 2019 /usr/bin/python3.4
-rwxr-xr-x 2 root root 4476664 juin 25 2019 /usr/bin/python3.4m
lrwxrwxrwx 1 root root 10 nov. 30 2014 /usr/bin/python3m -> python3.4m
```
c'est quoi python3m? une version mobile?