I am trying to install latest version of six python package but I have following issues. Can't get rid of six 1.4.1 in mac OSX 10.10.2
sudo pip install six --upgrade Requirement already up-to-date: six in /Library/Python/2.7/site-packages Cleaning up... pip search six six - Python 2 and 3 compatibility utilities INSTALLED: 1.9.0 (latest) python -c "import six; print six.version" 1.4.1 which -a python /usr/bin/python which -a pip /usr/local/bin/pip
What is wrong here? Can't upgrade six!
Type “ pip install six ” (without quotes) in the command line and hit Enter again. This installs six for your default Python installation. The previous command may not work if you have both Python versions 2 and 3 on your computer.
How do I Install a Specific Version of a Python Package? To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1.
Install Python 3 with the Official Installer First, download an installer package from the Python website. To do that, visit https://www.python.org/downloads/ on your Mac; it detects your operating system automatically and shows a big button for downloading the latest version of Python installer on your Mac.
To update installed packages to the latest version, run pip install with the --upgrade or -U option.
I resolved the problem by the following method.
python setup.py install
This works because it installs the new version of six to /Library/Python/2.7/site-packages/ which is searched before /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
Your pip
binary belongs to /usr/local/bin/python
, whereas python
points to /usr/bin/python
. As a consequence
pip install --upgrade six
will install to /usr/local/bin/python
.
The command below will make sure that the right version of pip is used:
python -m pip install --upgrade six
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With