2020-12-18 14:27:39 +08:00
|
|
|
[<img src="https://seleniumbase.io/cdn/img/sb_logo_b.png" title="SeleniumBase" width="360">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
|
2019-11-11 12:58:02 +08:00
|
|
|
|
2020-12-18 14:27:39 +08:00
|
|
|
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Installation</h2>
|
2018-03-26 09:07:05 +08:00
|
|
|
|
2020-08-03 07:53:29 +08:00
|
|
|
If installing SeleniumBase directly [from PyPI (the Python Package Index)](https://pypi.python.org/pypi/seleniumbase), use:
|
|
|
|
```bash
|
|
|
|
pip install seleniumbase
|
|
|
|
```
|
|
|
|
|
2020-05-16 01:15:37 +08:00
|
|
|
If installing SeleniumBase from a Git clone, use:
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/seleniumbase/SeleniumBase.git
|
|
|
|
cd SeleniumBase/
|
2020-08-03 07:53:29 +08:00
|
|
|
pip install .
|
2018-03-26 09:07:05 +08:00
|
|
|
```
|
|
|
|
|
2020-08-03 07:53:29 +08:00
|
|
|
For a development mode install in editable mode, use:
|
2018-03-26 09:07:05 +08:00
|
|
|
```bash
|
2020-08-03 07:53:29 +08:00
|
|
|
git clone https://github.com/seleniumbase/SeleniumBase.git
|
|
|
|
cd SeleniumBase/
|
|
|
|
pip install -e .
|
2018-03-26 09:07:05 +08:00
|
|
|
```
|
|
|
|
|
2020-05-16 01:15:37 +08:00
|
|
|
If installing SeleniumBase [from a GitHub branch](https://github.com/seleniumbase/SeleniumBase), use:
|
2018-03-26 09:07:05 +08:00
|
|
|
```bash
|
2019-10-23 12:33:47 +08:00
|
|
|
pip install git+https://github.com/seleniumbase/SeleniumBase.git@master#egg=seleniumbase
|
2018-03-26 09:07:05 +08:00
|
|
|
```
|
|
|
|
|
2019-10-23 12:33:47 +08:00
|
|
|
Useful ``pip`` options include:
|
|
|
|
* Add ``--upgrade`` OR ``-U`` to upgrade an installation.
|
|
|
|
* Add ``--force-reinstall`` for a clean install.
|
|
|
|
|
2020-05-16 01:15:37 +08:00
|
|
|
(If you're not using a virtual environment, you may need to add ``--user`` to your ``pip`` command if you're seeing errors during installation.)
|