-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Can't compile any versions of python on El Capitan #451
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
Comments
I'm still using Yosemite. Probably you don't have OpenSSL headers in /usr/include. This isn't intrinsic fix but reinstalling pyenv from latest github repo would help since it tries to use brew's openssl otherwise build it by itself. |
@yyuu OpenSSL and zlib has been installed from brew. P.S. Did Apple's new security policy cause the problem? Would you choose to upgrade? |
I just installed Python 2.7.10 on El Capitan (15A284) without any problems. This is definitely an environment problem, and not a problem with pyenv.
|
@thomasjo I am running a clean install of El Capitan instead of an upgrade, so do you? |
@Feiox Yep, clean install. Only thing I can think of that might affect this is that I have Anaconda installed, and set up as a system-level python (e.g. |
I have the same issues, and I use El Capitan too. Even I install the zlip by brew, the problem is same.
And it doesn't work either:
What can I do? |
Well, I succeed install with the #448 solution:
|
Okay...I browsed throughout the Internet....Finally I it's the x-code tool problem. That's solved my problem. |
👍 |
El Capitan is like the "gift" that keeps on giving... @312024196 thank you, your solution worked a charm. |
@arcseldon Glad to help you :> |
solve my problem. |
@ccqpein, ur solution solve my problem |
|
Problem is still here, |
For zlib, i had the same problem This worked for me after installing zlib with brew CFLAGS="-I/usr/local/opt/zlib/include" |
I'm running OS X Sierra and the above didn't help for me. Found this solution here: https://medium.com/@pimterry/setting-up-pyenv-on-os-x-with-homebrew-56c7541fd331
|
I was facing the problem with Python installation through all other mediums, but this is the only method worked for me. Thanks @echoyangyang |
macos 10.13.2 |
I know, it a close issue but today Feb/4/18. |
ditto, worked for me. |
Besides pyenv I also could not install ruby versions via rbenv. At this point I started looking at the system. I'd recently upgraded and used the migration assistant to move to a new machine.
afterward, I was able to install ruby and python versions |
|
On Mojave:
|
It is work!! Error Msg
Solved Command
Result Msg
|
Zlib not being found on mojave is a separate issue: #1219 |
I'm also having this problem with
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib
orERROR: The Python zlib extension was not compiled. Missing the zlib
?I am running a clean install of El Capitan 10.11 instead of an upgrade. I have tried all the solutions below:
but the same error ~~~~~ T_T
Here is the full error msg:
install py 2.7.10, err msg:
The text was updated successfully, but these errors were encountered: