Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: README.rst

Issue 29989581: Noissue - Update virtualenv instructions (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Add virtualenv comment Created Jan. 29, 2019, 12:35 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.rst
===================================================================
--- a/README.rst
+++ b/README.rst
@@ -211,12 +211,15 @@
Using the library with R
------------------------
-Clone the repo to your local machine. Then create a virtualenv and install
-python-abp there::
+``python-abp`` can be installed directly onto your system, or in a virtual
+environment. To install it directly onto your system::
- $ cd python-abp
- $ virtualenv env
- $ pip install --upgrade .
+ $ pip install --upgrade python-abp
+
+To install it in a virtual environment::
+
+ $ virtualenv venv
+ $ venv/bin/pip install --upgrade python-abp
Then import it with ``reticulate`` in R:
@@ -224,7 +227,7 @@
.. code-block:: R
> library(reticulate)
- > use_virtualenv("~/python-abp/env", required=TRUE)
+ > use_virtualenv("~/python-abp/env", required=TRUE) # If using virtualenv
> abp <- import("abp.filters.rpy")
Now you can use the functions with ``abp$functionname``, e.g.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld