Skip to content

Commit a7f8fd5

Browse files
committed
Change all pip commands to sudo pip.
1 parent c3e7430 commit a7f8fd5

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

README.rst

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ On a Debian-based system (Ubuntu, Mint, etc.) install them by running::
8484
sudo apt-get install -y build-essential python-dev git-core mercurial \
8585
cmake cmake-curses-gui python-pip swig
8686

87+
**Note:** You may find the version of pip this installs is too old, in
88+
which case you can tell pip to upgrade itself::
89+
90+
sudo pip install pip
91+
8792
Dependencies
8893
------------
8994

@@ -92,8 +97,9 @@ install to a user site use ``pip install --user ...``. If you don't want
9297
PyOP2 or its dependencies interfering with your existing Python environment,
9398
consider creating a `virtualenv <http://virtualenv.org/>`__.
9499

95-
**Note:** In the following we will use ``pip install ...`` to mean any
96-
of the above options.
100+
**Note:** In the following we will use ``sudo pip install ...``. If
101+
you want either of the other options you should change the command
102+
appropriately.
97103

98104
**Note:** Installing to the user site does not always give packages
99105
priority over system installed packages on your ``sys.path``.
@@ -129,7 +135,7 @@ can selectively upgrade packages via ``pip``, see below.
129135

130136
Install dependencies via ``pip``::
131137

132-
pip install "Cython>=0.17" decorator "numpy>=1.6"
138+
sudo pip install "Cython>=0.17" decorator "numpy>=1.6"
133139

134140
Additional Python 2.6 dependencies:
135141

@@ -138,7 +144,7 @@ Additional Python 2.6 dependencies:
138144

139145
Install these via ``pip``::
140146

141-
pip install argparse ordereddict
147+
sudo pip install argparse ordereddict
142148

143149
PETSc
144150
~~~~~
@@ -160,7 +166,7 @@ compiler) are installed. On a Debian based system, run::
160166

161167
Then install PETSc_ via ``pip`` ::
162168

163-
PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle --download-chaco" \
169+
sudo PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle --download-chaco" \
164170
pip install git+https://bitbucket.org/petsc/petsc.git
165171
unset PETSC_DIR
166172
unset PETSC_ARCH
@@ -170,7 +176,7 @@ should be left unset when building petsc4py_.
170176

171177
Install petsc4py_ via ``pip``::
172178

173-
pip install git+https://bitbucket.org/petsc/petsc4py.git
179+
sudo pip install git+https://bitbucket.org/petsc/petsc4py.git
174180

175181
If you have previously installed and older version of PETSc_ or petsc4py_,
176182
``pip`` might tell you that the requirements are already satisfied when running
@@ -208,7 +214,7 @@ is too old, you will need to install it via ``pip``, see below.
208214

209215
Install dependencies via ``pip``::
210216

211-
pip install codepy Jinja2 mako pycparser>=2.10
217+
sudo pip install codepy Jinja2 mako pycparser>=2.10
212218

213219
If a pycuda package is not available, it will be necessary to install it
214220
manually. Make sure ``nvcc`` is in your ``$PATH`` and ``libcuda.so`` in
@@ -258,7 +264,7 @@ location you need to configure pyopencl manually::
258264

259265
Otherwise, install dependencies via ``pip``::
260266

261-
pip install Jinja2 mako pyopencl>=2012.1 pycparser>=2.10
267+
sudo pip install Jinja2 mako pyopencl>=2012.1 pycparser>=2.10
262268

263269
Installing the Intel OpenCL toolkit (64bit systems only)::
264270

@@ -296,7 +302,7 @@ On a Debian-based system, run::
296302

297303
sudo apt-get install libhdf5-mpi-dev python-h5py
298304

299-
Alternatively, if the HDF5 library is available, ``pip install h5py``.
305+
Alternatively, if the HDF5 library is available, ``sudo pip install h5py``.
300306

301307
Building PyOP2
302308
--------------
@@ -327,7 +333,7 @@ and FIAT_. Note that FFC_ requires a version of Instant_.
327333

328334
Install FFC_ and all dependencies via pip::
329335

330-
pip install \
336+
sudo pip install \
331337
git+https://bitbucket.org/mapdes/ffc.git#egg=ffc
332338
git+https://bitbucket.org/mapdes/ufl.git#egg=ufl
333339
git+https://bitbucket.org/mapdes/fiat.git#egg=fiat
@@ -368,12 +374,12 @@ manager::
368374

369375
or pip::
370376

371-
pip install "pytest>=2.3"
377+
sudo pip install "pytest>=2.3"
372378

373379
The code linting test uses `flake8 <http://flake8.readthedocs.org>`__.
374380
Install via pip::
375381

376-
pip install "flake8>=2.1.0"
382+
sudo pip install "flake8>=2.1.0"
377383

378384
If you install *pytest* and *flake8* using ``pip --user``, you should
379385
include the binary folder of your local site in your path by adding the

0 commit comments

Comments
 (0)