2022-11-05 13:27:22 +08:00
|
|
|
<!-- SeleniumBase Docs -->
|
|
|
|
|
2022-11-27 04:43:30 +08:00
|
|
|
## [<img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) SeleniumBase Installation
|
2018-03-26 09:07:05 +08:00
|
|
|
|
2023-02-18 12:53:47 +08:00
|
|
|
<h4>If installing <code>seleniumbase</code> directly from <a href="https://pypi.python.org/pypi/seleniumbase">PyPI</a>, (the Python Package Index), use:</h4>
|
2021-06-05 09:56:14 +08:00
|
|
|
|
2020-08-03 07:53:29 +08:00
|
|
|
```bash
|
|
|
|
pip install seleniumbase
|
|
|
|
```
|
|
|
|
|
2023-02-18 12:53:47 +08:00
|
|
|
<h4>To upgrade an existing <code>seleniumbase</code> install from PyPI:</h4>
|
2022-04-01 06:22:59 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install -U seleniumbase
|
|
|
|
```
|
|
|
|
|
2023-02-18 12:53:47 +08:00
|
|
|
<h4>If installing <code>seleniumbase</code> from a Git clone, use:</h4>
|
2021-06-05 09:56:14 +08:00
|
|
|
|
2020-05-16 01:15:37 +08:00
|
|
|
```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
|
|
|
```
|
|
|
|
|
2021-09-20 15:22:58 +08:00
|
|
|
<h4>For a development mode install in editable mode, use:</h4>
|
2021-06-05 09:56:14 +08:00
|
|
|
|
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
|
|
|
```
|
|
|
|
|
2022-11-27 04:43:30 +08:00
|
|
|
<h4>To upgrade an existing <code>seleniumbase</code> install from GitHub:</h4>
|
2022-04-01 06:22:59 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
git pull # To pull the latest version
|
|
|
|
pip install -e . # Or "pip install ."
|
|
|
|
```
|
|
|
|
|
2023-02-18 12:53:47 +08:00
|
|
|
<h4>If installing <code>seleniumbase</code> from a <a href="https://github.com/seleniumbase/SeleniumBase">GitHub branch</a>, use:</h4>
|
2021-06-05 09:56:14 +08:00
|
|
|
|
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
|
|
|
```
|
|
|
|
|
2021-09-20 15:22:58 +08:00
|
|
|
<h3><code>pip install</code> can be customized:</h3>
|
2019-10-23 12:33:47 +08:00
|
|
|
|
2022-08-07 23:30:27 +08:00
|
|
|
* (Add ``--upgrade`` OR ``-U`` to upgrade SeleniumBase.)
|
2022-10-01 11:11:55 +08:00
|
|
|
* (Add ``--force-reinstall`` to upgrade indirect libraries.)
|
2022-08-07 23:30:27 +08:00
|
|
|
* (Use ``pip3`` if multiple versions of Python are present.)
|
2021-09-20 15:22:58 +08:00
|
|
|
|
2022-11-27 04:43:30 +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.)
|
2021-09-28 03:08:03 +08:00
|
|
|
|
|
|
|
--------
|
|
|
|
|
2023-02-18 12:53:47 +08:00
|
|
|
[<img src="https://seleniumbase.github.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="290" />](https://github.com/seleniumbase/SeleniumBase/)
|