Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install python 3.4.2 on osx 10.9.4 #263

Closed
HappyShaker opened this Issue Oct 29, 2014 · 9 comments

Comments

Projects
None yet
5 participants
@HappyShaker
Copy link

HappyShaker commented Oct 29, 2014

i try to install a python 3.4.2 using pyenv, but it does not work

CFLAGS="-I/Application/Xcode.app/Contents/Developer/usr/include -I$(brew --prefix openssl)/include -I$(brew --prefix sqlite3)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix sqlite3)/lib" pyenv install -v 3.4.2

error like below

Downloading Python-3.4.2.tgz...
-> https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
Installing Python-3.4.2...
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/yyuu/pyenv/wiki/Common-build-problems


BUILD FAILED

Inspect or clean up the working tree at /var/folders/qp/_wylgkcd7310hzghc74wdcwc0000gn/T/python-build.20141029131544.58389
Results logged to /var/folders/qp/_wylgkcd7310hzghc74wdcwc0000gn/T/python-build.20141029131544.58389.log

Last 10 log lines:
(cd /Users/arena/.pyenv/versions/3.4.2/share/man/man1; ln -s python3.4.1 python3.1)
if test "xupgrade" != "xno"  ; then \
        case upgrade in \
            upgrade) ensurepip="--upgrade" ;; \
            install|*) ensurepip="" ;; \
        esac; \
         ./python.exe -E -m ensurepip \
            $ensurepip --root=/ ; \
    fi
Ignoring ensurepip failure: pip 1.5.6 requires SSL/TLS

i already installed openssl

$ brew install openssl
Warning: openssl-1.0.1j already installed
@yyuu

This comment has been minimized.

Copy link
Collaborator

yyuu commented Oct 29, 2014

Do you have include headers in /usr/include? If not, you might not have installed Command-Line Tools for Xcode. Please install it and try again.

@yyuu yyuu added the type: question label Oct 29, 2014

@HappyShaker

This comment has been minimized.

Copy link
Author

HappyShaker commented Oct 29, 2014

i install Command-Line Tools for Xcode.
so, i get some headers in /usr/include
but, same problem occurred like below.

rm -f /Users/arena/.pyenv/versions/3.4.2/bin/pyvenv
(cd /Users/arena/.pyenv/versions/3.4.2/bin; ln -s pyvenv-3.4 pyvenv)
if test "x" != "x" ; then \
        rm -f /Users/arena/.pyenv/versions/3.4.2/bin/python3-32; \
        (cd /Users/arena/.pyenv/versions/3.4.2/bin; ln -s python3.4-32 python3-32) \
    fi
rm -f /Users/arena/.pyenv/versions/3.4.2/share/man/man1/python3.1
(cd /Users/arena/.pyenv/versions/3.4.2/share/man/man1; ln -s python3.4.1 python3.1)
if test "xupgrade" != "xno"  ; then \
        case upgrade in \
            upgrade) ensurepip="--upgrade" ;; \
            install|*) ensurepip="" ;; \
        esac; \
         ./python.exe -E -m ensurepip \
            $ensurepip --root=/ ; \
    fi
Ignoring ensurepip failure: pip 1.5.6 requires SSL/TLS
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem.
https://github.com/yyuu/pyenv/wiki/Common-build-problems
BUILD FAILED
Inspect or clean up the working tree at /var/folders/qp/_wylgkcd7310hzghc74wdcwc0000gn/T/python-build.20141029135217.534
Results logged to /var/folders/qp/_wylgkcd7310hzghc74wdcwc0000gn/T/python-build.20141029135217.534.log
Last 10 log lines:
(cd /Users/arena/.pyenv/versions/3.4.2/share/man/man1; ln -s python3.4.1 python3.1)
if test "xupgrade" != "xno"  ; then \
        case upgrade in \
            upgrade) ensurepip="--upgrade" ;; \
            install|*) ensurepip="" ;; \
        esac; \
         ./python.exe -E -m ensurepip \
            $ensurepip --root=/ ; \
    fi
Ignoring ensurepip failure: pip 1.5.6 requires SSL/TLS
@HappyShaker

This comment has been minimized.

@yyuu

This comment has been minimized.

Copy link
Collaborator

yyuu commented Oct 29, 2014

Please read https://github.com/yyuu/pyenv/wiki/Common-build-problems first and solve the problem by yourself. This must not be a pyenv bug.

@yyuu yyuu closed this Oct 29, 2014

@williamboman

This comment has been minimized.

Copy link

williamboman commented Nov 12, 2014

@drugdealer I'm having the same issues. Have you solved this yet?

@williamboman

This comment has been minimized.

Copy link

williamboman commented Nov 12, 2014

Installing Xcode Command Line tools fixed this. xcode-select --install. (assuming you're on OS X of course)

@HappyShaker

This comment has been minimized.

Copy link
Author

HappyShaker commented Nov 13, 2014

@williamboman i did it, installing Xcode Command Line tools. but, still same problem occurred.

@ThisGuyCodes

This comment has been minimized.

Copy link

ThisGuyCodes commented Dec 1, 2014

I ran into this issue after upgrading to OS X 10.10 (I had previously installed the xcode command line tools), but after re-running xcode-select --install as @williamboman suggested, it started working again.

@mofhu

This comment has been minimized.

Copy link

mofhu commented Mar 13, 2015

I also ran into this issue using OS X 10.10.3, fixed using the CFLAGS environment variable.

https://github.com/yyuu/pyenv/wiki/Common-build-problems
On Mac OS X 10.9 and 10.10 you may need to set the CFLAGS environment variable when installing a new version in order for configure to find the zlib headers (XCode command line tools must be installed first):
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 2.7.7
Alternatively, try reinstalling XCode command line tools for your OS (especially if you just upgraded your OS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.