<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1165521&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [RESOLU] Developpement et programmation]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1165521</link>
		<description><![CDATA[Les sujets les plus récents dans [RESOLU] Developpement et programmation.]]></description>
		<lastBuildDate>Sun, 13 Jan 2013 16:54:23 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12193731#p12193731</link>
			<description><![CDATA[<p>Cette fois , c&#039;est fini :</p><div class="quotebox"><blockquote><div><p>&gt;&gt;&gt; n=os.popen(&quot;dpkg -l py\*| grep &#039;^ii&#039;&quot;,&#039;r&#039;).read().count(&#039;\n&#039;)<br />&gt;&gt;&gt; print n<br />115</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sun, 13 Jan 2013 16:54:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12193731#p12193731</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12193491#p12193491</link>
			<description><![CDATA[<p>Dans le répertoire d&#039;où tu lances python, n&#039;y aurait-il pas des fichiers dont le nom commence par <strong>py</strong> ?<br />Tu peux essayer :</p><div class="codebox"><pre><code>n=os.popen(&quot;dpkg -l py\*| grep &#039;^ii&#039;&quot;,&#039;r&#039;).read().count(&#039;\n&#039;)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sun, 13 Jan 2013 16:39:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12193491#p12193491</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12192591#p12192591</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>&gt;&gt;&gt; n=os.popen(&quot;dpkg -l py*| grep &#039;^ii&#039;&quot;,&#039;r&#039;).read().count(&#039;\n&#039;)<br />&gt;&gt;&gt; print n<br />1</p></div></blockquote></div><p>115 packages est le résultat</p>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sun, 13 Jan 2013 15:47:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12192591#p12192591</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12192461#p12192461</link>
			<description><![CDATA[<div class="codebox"><pre><code>&gt;&gt;&gt; os.system(&quot;dpkg -l py*| grep &#039;^ii&#039;|wc -l&quot;)
1   # Résultat de la commande passée à os.system
0   # Retour de os.system</code></pre></div><div class="codebox"><pre><code>&gt;&gt;&gt; n=os.popen(&quot;dpkg -l py*| grep &#039;^ii&#039;&quot;,&#039;r&#039;).read().count(&#039;\n&#039;)

Le résultat est dans la variable n</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sun, 13 Jan 2013 15:40:09 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12192461#p12192461</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12191871#p12191871</link>
			<description><![CDATA[<p>Réponse pas suffisante :</p><div class="quotebox"><blockquote><div><p>&gt;&gt;&gt; import os<br />&gt;&gt;&gt; os.system(&quot;dpkg -l py*| grep &#039;^ii&#039;|wc -l&quot;)<br />1<br />0<br />&gt;&gt;&gt; n=os.popen(&quot;dpkg -l py*| grep &#039;^ii&#039;&quot;,&#039;r&#039;).read().count(&#039;\n&#039;)<br />&gt;&gt;&gt;</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sun, 13 Jan 2013 14:52:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12191871#p12191871</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12190141#p12190141</link>
			<description><![CDATA[<div class="codebox"><pre><code>n=os.popen(&quot;dpkg -l py*| grep &#039;^ii&#039;&quot;,&#039;r&#039;).read().count(&#039;\n&#039;)</code></pre></div><p><span class="bbu">Ajouté</span> :<br />Ou bien</p><div class="codebox"><pre><code>os.system(&quot;dpkg -l py*| grep &#039;^ii&#039;|wc -l&quot;)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sun, 13 Jan 2013 12:04:41 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12190141#p12190141</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12189311#p12189311</link>
			<description><![CDATA[<p>C&#039;est bien , il y a 115 packages python - Mais je fais un copier/coller pour avoir ce nombre vers un tableur</p><div class="quotebox"><blockquote><div><p>os.system(&quot;dpkg -l py*| grep &#039;^ii&#039;&quot;)</p></div></blockquote></div><p>Est ce qu&#039;une boucle peut compter ce qu&#039;une commande bash affiche ?</p>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sun, 13 Jan 2013 10:58:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12189311#p12189311</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12188491#p12188491</link>
			<description><![CDATA[<p>La commande <strong>dpkg</strong> que je t&#039;indique en #4 est une commande <strong>bash</strong>.<br />On peut l&#039;utiliser ainsi en <strong>python</strong> :</p><div class="codebox"><pre><code>import os
os.system(&quot;dpkg -l | grep &#039;^ii&#039;&quot;)</code></pre></div><p>mais il y a peut-être plus simple.</p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sun, 13 Jan 2013 09:27:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12188491#p12188491</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12183821#p12183821</link>
			<description><![CDATA[<p>ok - résolu et affichage correct </p><p>En fait , j&#039;ai installé python 3 , que je n&#039;utilise pas encore .<br />Depuis la console , j&#039;ai le python natif 2.7</p><p>Quand je suis dans le python natif de la console , est ce que une commande peut donner la <br />liste des packages installés ?</p>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sat, 12 Jan 2013 18:43:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12183821#p12183821</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12182061#p12182061</link>
			<description><![CDATA[<div class="quotebox"><cite>bmzoom a écrit&#160;:</cite><blockquote><div><p>- comment lister les package installés avec la console ?</p></div></blockquote></div><div class="codebox"><pre><code>dpkg -l | grep &#039;^ii&#039;</code></pre></div><div class="quotebox"><blockquote><div><p>- sudo install matplotlib , est ce suffisant ?</p></div></blockquote></div><div class="codebox"><pre><code>sudo apt-get install python-matplotlib</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sat, 12 Jan 2013 16:38:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12182061#p12182061</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12181891#p12181891</link>
			<description><![CDATA[<p><a href="http://doc.ubuntu-fr.org/projets/ecole/python/1">http://doc.ubuntu-fr.org/projets/ecole/python/1</a></p><p>Il y a des cours sur ce forum , mais il faut jouer la musique du cours sans avoir l&#039;instrument&#160; ..</p><p>- comment lister les package installés avec la console ?<br />- sudo install matplotlib , est ce suffisant ?</p>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sat, 12 Jan 2013 16:21:53 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12181891#p12181891</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12181581#p12181581</link>
			<description><![CDATA[<p>Bonjour,<br />As-tu installé le paquet <strong>python-matplotlib</strong> ?</p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sat, 12 Jan 2013 15:50:04 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12181581#p12181581</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLU] Developpement et programmation]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12181351#p12181351</link>
			<description><![CDATA[<p>bonjour ,</p><p>Est ce possible d&#039; ajouter quelques langages , pour obtenir des bases . <br />Suis intéressé par python et c&#039;est pour comprendre les librairies installées<br />dans la version de ubuntu .</p><p>import matplotlib.pyplot as plt<br />import numpy as np<br />x=np.linspace(-5,5,100)<br />plt.plot(x,np.sin(x))&#160; # on utilise la fonction sinus de Numpy<br />plt.ylabel(&#039;fonction sinus&#039;)<br />plt.xlabel(&quot;l&#039;axe des abcisses&quot;)<br />plt.show()</p><p>&gt;&gt;&gt; ImportError: No module named matplotlib.pyplot</p>]]></description>
			<author><![CDATA[dummy@example.com (bmzoom)]]></author>
			<pubDate>Sat, 12 Jan 2013 15:33:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12181351#p12181351</guid>
		</item>
	</channel>
</rss>
