2022-08-06 06:27:38 +08:00
## [<img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) SeleniumBase Installation
2018-03-26 09:07:05 +08:00
2021-10-01 23:11:47 +08:00
< h4 > If installing SeleniumBase 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
```
2022-04-01 06:22:59 +08:00
To upgrade an existing ``seleniumbase`` install from PyPI:
```bash
pip install -U seleniumbase
```
2021-09-20 15:22:58 +08:00
< h4 > If installing SeleniumBase 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-04-01 06:22:59 +08:00
To upgrade an existing ``seleniumbase`` install from GitHub:
```bash
git pull # To pull the latest version
pip install -e . # Or "pip install ."
```
2021-09-20 15:22:58 +08:00
< h4 > If installing SeleniumBase 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
2021-09-20 15:22:58 +08:00
> (Add ``--upgrade`` OR ``-U`` to upgrade an installation.)
> (Add ``--force-reinstall`` to upgrade dependencies.)
2021-11-04 01:55:49 +08:00
> (Add ``--index-url=http://pypi.python.org/simple/`` if blocked by a VPN.)
2021-09-20 15:22:58 +08:00
> (Use ``pip3`` if multiple versions of Python are installed.)
(If you're not using a virtual environment, you may need to add < code > --user< / code > to your < code > pip< / code > command if you're seeing errors during installation.)
2021-09-28 03:08:03 +08:00
--------
2022-08-06 06:27:38 +08:00
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="200"> ](https://github.com/seleniumbase/SeleniumBase/ )
< a href = "https://github.com/seleniumbase/SeleniumBase/" > < img src = "https://seleniumbase.io/cdn/img/sb_logo_b.png" alt = "SeleniumBase" title = "SeleniumBase" width = "200" / > < / a >