![]() If it doesn't display an error, just create a virtual environment in the project, activate it and install selenium inside of it. I’m using a brand new 2020 Macbook Air and it has the out of date v2.x installed so go ahead and install the latest 3.x with: Brew install Python As a note you now (probably) have both Python2 and Python3 on your Mac - so we are going to use Python3. Then install selenium with pip install -U selenium (it will install the latest version). Install ChromeDriver with Brew cask install chromedriver. Venv\Scripts\activate.bat (for Windows cmd). Venv\Scripts\Activate.ps1 (for Windows powershell) or We are working to make sure this isnt required in the long run. This command should work xcode-select -install Apple Silicon Macs should add build -hostplatform//:rosetta to their. If it displays an error, install it with pip install virtualenv The tox automation project for Python: pip install tox macOS users: Install the latest version of Xcode including the command-line tools. then pip install selenium into the environment.Ĭheck if you have a virtual environment with virtualenv -version If there is, activate it with source /bin/activate (for MacOS) and venv\Scripts\Activate.ps1 (for Windows powershell) or venv\Scripts\activate.bat (for Windows cmd). Then, I downloaded chromedriver and placed it in a folder and added it to PATH. ![]() Please check the project structure and see if there is no virtual environment already (It is a good practice to have one) created in the project. I installed Selenium on a mac through pip (python).
0 Comments
Leave a Reply. |