[Distutils] Problems using pip on Ubuntu when 2.7, 3.4 and 3.5 are installed
Leonardo Rochael Almeida
leorochael at gmail.com
Fri Jan 8 09:43:10 EST 2016
Hi Mr(s) Versions,
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.
>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
If yours is a Debian style system, you might need to install the
"python-dev" or perhaps a "python3.5-dev" package. E.g.:
- apt-get install python-dev
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:
- yum install python-dev
Hope it helps.
On 8 January 2016 at 07:18, ars technica <arstechnica at contractor.net> wrote:
> thank you for the tutorial here
> 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.
> The command pip installs to 2.7
> pip3 installs to 3.4 and that leaves 3.5 all alone.
> I tried to install numpy with the command
> python3.5 -m pip install numpy
> but got the error that Python.h could not be located. When asked bash
> *locate* Python.h
> it returned
> 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?
> Best regards,
> lost in versions.
> Distutils-SIG maillist - Distutils-SIG at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG