简体   繁体   中英

Installing packages using pip give SSL error

I recently started learning Python, am new to Python but not to programming. I have four machines on which I was able to install the Django and Python seamlessly. On the fifth machine that is a Mac Book Pro OS 10.6.8 I am able to install Django (or for that matter any other package) for Python2.6 but get the following error if I try it for Python 3.4.1

Downloading/unpacking django
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement django
Cleaning up...
No distributions at all found for django
Storing debug log for failure in /Users/himmy/.pip/pip.log

I tried searching the web and the closest I found was

Can't Install `pip` for `python 3.3` but worked fine for `python 2.7`

which doesn't really solve the problem.

Thanks in Advance

Per a comment by the OP :

Downgrading pip to version 1.2 solves the problem. The easiest way to achieve this is:

 curl -O pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz tar xvfz pip-1.2.1.tar.gz cd pip-1.2.1 python setup.py install 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM