Cryptography: pip install fails

Created on 11 Oct 2017  Â·  7Comments  Â·  Source: pyca/cryptography

error in cryptography setup command: Invalid environment marker: python_implementation != 'PyPy'

Trying to install it into Python 2.7 venv

Most helpful comment

Upgrading setuptools to the latest version fixed the issue

$ pip install -U setuptools
Installing collected packages: setuptools
  Found existing installation: setuptools 18.0.1
    Uninstalling setuptools-18.0.1:
      Successfully uninstalled setuptools-18.0.1
Successfully installed setuptools-36.6.0

All 7 comments

This means you have an out of date version of either pip or setuptools; please upgrade to the latest versions and try again.

If that doesn't fix it leave a comment and we'll reopen.

What version of pip do you have? The latest version of cryptography requires pip 6+ so that may be your issue.

pip (9.0.1) - The PyPA recommended tool for installing Python packages.
INSTALLED: 9.0.1 (latest)

setuptools (36.5.0) - Easily download, build, install, upgrade, and uninstall Python packages
INSTALLED: 36.5.0 (latest)

did nothing, and now it is being installed ok... thanks

I'm having the same issue on travis.

$ python --version
Python 2.7.10 (7e8df3df9641, Jun 14 2016, 13:58:02)
[PyPy 5.3.1 with GCC 4.8.2]
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/pypy-5.3.1/site-packages (python 2.7)

Travis log: https://travis-ci.org/joke2k/faker/jobs/287279818

Can you try adding pip install -U setuptools?

On Thu, Oct 12, 2017 at 6:05 PM, Flavio Curella notifications@github.com
wrote:

I'm having the same issue on travis.

$ python --version
Python 2.7.10 (7e8df3df9641, Jun 14 2016, 13:58:02)
[PyPy 5.3.1 with GCC 4.8.2]

0.89s$ pip --version
pip 9.0.1 from /home/travis/virtualenv/pypy-5.3.1/site-packages (python 2.7)

Travis log: https://travis-ci.org/joke2k/faker/jobs/287279818

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/pyca/cryptography/issues/3959#issuecomment-336288485,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAADBNA48LoqaxUdpyvfPvGElfMZMpo4ks5sro1GgaJpZM4P1bzf
.

--
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: D1B3 ADC0 E023 8CA6

Upgrading setuptools to the latest version fixed the issue

$ pip install -U setuptools
Installing collected packages: setuptools
  Found existing installation: setuptools 18.0.1
    Uninstalling setuptools-18.0.1:
      Successfully uninstalled setuptools-18.0.1
Successfully installed setuptools-36.6.0
Was this page helpful?
0 / 5 - 0 ratings

Related issues

doowon picture doowon  Â·  23Comments

odidev picture odidev  Â·  49Comments

alex picture alex  Â·  28Comments

clarius-deploy picture clarius-deploy  Â·  22Comments

Naddiseo picture Naddiseo  Â·  45Comments