Python3 always shows ImportError message
<p>Whenever I try to run a script the python interpreter always shows an <code>ImportError</code> message such as (e.g.) <code>No module named 'setuptools'</code>. So, I tried install (or to satisfy this requirement) with <code>apt-get</code>... I do this for both Python 2.7 and Python 3.5 until <code>Requirement already satisfied</code>.</p>

<p>First of all, I don't work with Python 2.7, but it's the defaul version for the interpreter. So, how could I solve this problem to work with Python 3.5? I tried this:</p>

<pre><code>&gt;&gt;&gt; import sys
&gt;&gt;&gt; print(sys.path)
['',
 '/usr/local/lib/python35.zip',
 '/usr/local/lib/python3.5',
 '/usr/local/lib/python3.5/plat-linux',
 '/usr/local/lib/python3.5/lib-dynload',
 '/usr/local/lib/python3.5/site-packages']
</code></pre>

<p>This was for <strong>Python3</strong>, for Python2 I did the same to compare the paths and I got this:</p>

<pre><code>&gt;&gt;&gt; import sys
&gt;&gt;&gt; print(sys.path)
['',
 '/usr/local/lib/python2.7/dist-packages/pygame-1.9.2b8-py2.7-linux-x86_64.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0']
</code></pre>

<p>Now... Should it work if I use the <code>append()</code> method to add all the paths of Python2 to the paths in Python3? Also, I've been considered to completely uninstall Python2, but I know this will cause more problems in my system that the one I try to solve.</p>

<p>try :</p>

<pre><code>python3.5 -m pip install setuptools
</code></pre>

python python-2.7 python-3.x pip importerror