Installing Python3 Packages via Pip on Ubuntu
When faced with Ubuntu 12.04 and both Python 2.7 and Python 3.2 installed, where the symbolic link 'python' points to Python 2.7, it becomes challenging to install Python 3 versions of packages using pip. As pip defaults to installing Python 2 versions, it's important to find a way to specify the Python 3 version.
Solution for Ubuntu 12.10 and Fedora 13
Ubuntu and Fedora provide a Python 3 pip package known as 'python3-pip.' Installing this package directly sets up 'pip-3.2' (or newer versions for later releases) without any additional steps.
Solution for Ubuntu 12.04 without Python3-pip
For Ubuntu 12.04 without Python3-pip:
The above is the detailed content of How to Install Python3 Packages with Pip on Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!