Python: SSL insercure platform warning

 /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see

To remove warning install ndg-httpsclient:

pip install ndg-httpsclient

Install the mysql.connector Python package

pip install mysql-connector-python --allow-external mysql-connector-python

Uninstall Python from OSX

This only uninstalls custom Python installation. Uninstalling the default Python
that comes with OSX is not a good idea.

1) Delete Python files
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf /Applications/Python 2.7

2) Remove symbolic links in /usr/local/bin
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | xargs rm  

3) Edit your shell profile file(s) and delete that line that adds /Library/Frameworks/Python.framework/Versions/2.7 to your PATH environment file. This could either of
these files, depending on the shell you are using:

Setting Up a New Mac Python

(1) Install Brew (check
     (1.5) brew install python (Optional: This will use latest python instead of the one that came with OSX)
(2) Install pip (sudo easy_install pip)
(3) Install virtualenv (pip install virtualenv)
(4) Install virtualenvwrapper (pip install virtualenvwrapper)
(5) Initialize virtualenvwrapper:
Add these lines on .bashrc
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/

 After editing, run  
source ~/.bashrc).



PISIKA Copyright © 2009