authomatic / chromedriver_installer

ChromeDriver installer for Python
15 stars 34 forks source link

[SSL: CERTIFICATE_VERIFY_FAILED] error upon pip install #7

Open khpeek opened 6 years ago

khpeek commented 6 years ago

I'm trying to pip install chromedriver_installer, but I'm getting the following error:

(venv) Kurts-MacBook-Pro-2:lucy-web kurtpeek$ pip install chromedriver_installer
Collecting chromedriver_installer
  Downloading https://files.pythonhosted.org/packages/c8/01/0a8a725bb605f68923aba16099a01cbbfe547c8b7dc96fd9a554424f6524/chromedriver_installer-0.0.6.tar.gz
Building wheels for collected packages: chromedriver-installer
  Running setup.py bdist_wheel for chromedriver-installer ... error
  Complete output from command /Users/kurtpeek/Documents/Dev/lucy/lucy-web/venv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-build-ff302o9e/chromedriver-installer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/tmpd0wnbewlpip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/chromedriver_installer
  copying chromedriver_installer/__init__.py -> build/lib/chromedriver_installer
  running build_scripts
  error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>

  ----------------------------------------
  Failed building wheel for chromedriver-installer
  Running setup.py clean for chromedriver-installer
Failed to build chromedriver-installer
Installing collected packages: chromedriver-installer
  Running setup.py install for chromedriver-installer ... error
    Complete output from command /Users/kurtpeek/Documents/Dev/lucy/lucy-web/venv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-build-ff302o9e/chromedriver-installer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-dr4oqd3y-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kurtpeek/Documents/Dev/lucy/lucy-web/venv/bin/../include/site/python3.6/chromedriver-installer:
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/chromedriver_installer
    copying chromedriver_installer/__init__.py -> build/lib/chromedriver_installer
    running build_scripts
    error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>

    ----------------------------------------
Command "/Users/kurtpeek/Documents/Dev/lucy/lucy-web/venv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-build-ff302o9e/chromedriver-installer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-dr4oqd3y-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kurtpeek/Documents/Dev/lucy/lucy-web/venv/bin/../include/site/python3.6/chromedriver-installer" failed with error code 1 in /private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-build-ff302o9e/chromedriver-installer/
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Any idea how to fix this?

DmitryMarkovnikov commented 6 years ago

run this command /Applications/Python\ 3.6/Install\ Certificates.command