(dp) MacBook-Pro-3:chromedriver_mac_arm64 apple$ pip install chromedriver-autoinstaller
Looking in indexes: http://pypi.tuna.tsinghua.edu.cn/simple
Collecting chromedriver-autoinstaller
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c5/3a/9394d5b4c1f07dbdac9f7176682829aacd5f6d16cc71702157fc2acd5913/chromedriver_autoinstaller-0.4.1-py3-none-any.whl (6.7 kB)
Installing collected packages: chromedriver-autoinstaller
Successfully installed chromedriver-autoinstaller-0.4.1
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
(dp) MacBook-Pro-3:chromedriver_mac_arm64 apple$ python
Python 3.6.10 |Anaconda, Inc.| (default, May 7 2020, 23:06:31)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from selenium import webdriver
>>> import chromedriver_autoinstaller
>>> chromedriver_autoinstaller.install()
'/Users/apple/anaconda3/envs/dp/lib/python3.6/site-packages/chromedriver_autoinstaller/114/chromedriver'
>>> driver = webdriver.Chrome()
>>> driver.get("http://www.python.org")