-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Mac install fails with fatal error: 'openssl/opensslv.h' file not found (tried previous instructions) #3489
Comments
Huh, this incantation worked (I left off the
|
Huh, we definitely ship wheels for that Python/macOS version (in fact most of us develop on that!). Could you give me the output of: |
Ah, you're actually running on pypy? pypy's ABI stability for wheels has historically been problematic so we haven't been shipping wheels there. For example, your gist shows the ABI tag for your version would be pp256-pypy_41. This probably means it's pypy2 5.6? I have a copy of pypy2 5.4 on my machine and the wheel tag is pp254-pypy_41. So we'd need to have different wheels for every version 😢 Maybe we need to do a better job documenting what to do if you're on the latest pip and still get this error (or prominently note that pypy, while supported, does not have prebuilt wheels unfortunately) |
Oh, right. Ideally in the error message from |
Seems like an actionable item here is to improve our FAQ question answer to mention PyPy. |
In my specific case I installed Pypy from pyenv, which is why it was
failing I think - it wasn't linking against Homebrew OpenSSL.
On Sun, Apr 9, 2017 at 06:19 Paul Kehrer ***@***.***> wrote:
Closed #3489 <#3489> via
e660ffe
<e660ffe>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3489 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOSI6uRkGLyYtgODF5Q6HwF1OowcqSGks5ruNrKgaJpZM4MzutJ>
.
--
…--
Kevin Burke
925.271.7005 | kev.inburke.com
|
Ok, fixed. best regards, AlexandreHi, I have exact same problem without pypy on fresh virtualenv set with python 3.6 on mac sierra . #3489 (comment) Thank guy ! |
I was able to get this to work by upgrading openssl using brew
and then setting the CPPFLAGS and LDFLAGS to point to the openssl lib from brew
|
Thanks @rgardam! |
Since this issue keeps coming up I'm going to lock this conversation, but for reference:
Generally you should always update pip first since in many cases the reason someone doesn't get a wheel (for any platform!) is that wheel tags have shifted over time and the version of pip in use doesn't know what newer tags mean. Also note that the version you're attempting to install may not have wheels (especially for arm64 macOS!). Always install the latest version if you can. |
When I run
pip install cryptography
I get the following error:Issue #3367 suggested upgrading pip. I am using the latest version of pip:
It also fails outside of the virtualenv. I am not sure why pip is trying to build the wheel instead of using the downloadable wheel.
I tried removing
~/Library/Caches/pip
and reinstalling and I am getting the same error.I use Homebrew but
brew link openssl --force
fails now with this error message:I tried running
LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install cryptography
and got the same error as above. I also triedpip install cryptography --global-option="-L/usr/local/opt/openssl/lib"
and got a different, but not more promising, error.Here is the Python version both inside and outside of the virtual environment:
Here is the system openssl:
Here is the Homebrew openssl version (not sure how to link this or specify it when running pip install)
I am running macOS Sierra version 10.12.4. Happy to provide any more debugging information as necessary; I'm not sure what more you would look for.
The text was updated successfully, but these errors were encountered: