<div dir="ltr">Hi Mr(s) Versions,<div><br></div><div>Your "locate" output shows that you have a manual installation of Python 3.4 on /usr/local, and it's possible that "/usr/local/bin" is ahead of "/usr/bin" in your PATH, which is why pip3 installs into Python 3.4.<br></div><div><br></div><div>From your error message with Python 3.5, it seems like your Python 3.5 is a "System Python", i.e., a Python that was installed with the package manager for your system, but that your Python development packages wasn't installed yet.</div><div><br></div><div>If yours is a Debian style system, you might need to install the "python-dev" or perhaps a "python3.5-dev" package. E.g.:</div><div><div><ul><li>apt-get install python-dev</li></ul></div></div><div>If your system is Redhat based (Fedora, RHEL (do we already have python3.5 in any RHEL release?)), then you're looking for a "python-devel" or "python3.5-devel" package. Something like:</div><div><ul><li>yum install python-dev</li></ul></div><div>Hope it helps.</div><div><br></div><div>Best regards,</div><div><br></div><div>Leo</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2016 at 07:18, ars technica <span dir="ltr"><<a href="mailto:arstechnica@contractor.net" target="_blank">arstechnica@contractor.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>Hi,</div>

<div> </div>

<div>thank you for the tutorial here</div>

<div><a href="https://docs.python.org/3.5/installing/index.html" target="_blank">https://docs.python.org/3.5/installing/index.html</a></div>

<div> </div>

<div>I have a problem using pip to install packages to 3.5. I now have three versions installed and pip only addresses the two old ones.</div>

<div> </div>

<div>The command pip installs to 2.7</div>

<div>pip3 installs to 3.4 and that leaves 3.5 all alone.</div>

<div> </div>

<div>I tried to install numpy with the command</div>

<div>python3.5 -m pip install numpy</div>

<div> </div>

<div>but got the error that Python.h could not be located. When asked bash</div>

<div><strong>locate</strong> Python.h</div>

<div>   it returned</div>

<div>/usr/local/include/python3.4m/Python.h</div>

<div> </div>

<div> </div>

<div>My question therefore is. How do I setup my environment to be able to install packages to all the Python versions? Should I do a virtualenvironment for each version or can I change some configuration file to let PIP know that it should check the Py3.5 folder when desired?</div>

<div> </div>

<div>Best regards,</div>

<div> </div>

<div>lost in versions.</div>

<div> </div>

<div> </div></div></div>
<br>_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
<br></blockquote></div><br></div>