SeleniumBase/help_docs/install.md

28 lines
1.1 KiB
Markdown
Raw Normal View History

2020-05-20 02:13:17 +08:00
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb4.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
2019-11-11 12:58:02 +08:00
2020-05-20 02:13:17 +08:00
## <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> Installation
2018-03-26 09:07:05 +08:00
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/
2019-10-23 12:33:47 +08:00
pip install -r requirements.txt
2018-10-21 07:44:32 +08:00
python setup.py install
2018-03-26 09:07:05 +08:00
```
2020-05-16 01:15:37 +08:00
If installing SeleniumBase directly [from PyPI (the Python Package Index)](https://pypi.python.org/pypi/seleniumbase), use:
2018-03-26 09:07:05 +08:00
```bash
2019-10-23 12:33:47 +08:00
pip install seleniumbase
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.)