Hello - I'm trying to install Geopandas, but I end up getting an error saying that permission is denied:
14:56 ~ $ pip install geopandas
Collecting geopandas
Downloading geopandas-0.2.1-py2.py3-none-any.whl (199kB)
100% |████████████████████████████████| 204kB 1.9MB/s
Collecting descartes (from geopandas)
Downloading descartes-1.1.0-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pyproj in /usr/local/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/local/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): fiona in /usr/local/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): shapely in /usr/local/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): matplotlib in /usr/local/lib/python2.7/dist-packages (from descartes->geopandas)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/local/lib/python2.7/dist-packages (from pandas->geopandas)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from pandas->geopandas)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in /usr/local/lib/python2.7/dist-packages (from pandas->geopandas)
Requirement already satisfied (use --upgrade to upgrade): click-plugins in /usr/local/lib/python2.7/dist-packages (from fiona->geopandas)
Requirement already satisfied (use --upgrade to upgrade): munch in /usr/local/lib/python2.7/dist-packages (from fiona->geopandas)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from fiona->geopandas)
Requirement already satisfied (use --upgrade to upgrade): cligj in /usr/local/lib/python2.7/dist-packages (from fiona->geopandas)
Requirement already satisfied (use --upgrade to upgrade): cycler in /usr/local/lib/python2.7/dist-packages (from matplotlib->descartes->geopandas)
Requirement already satisfied (use --upgrade to upgrade): pyparsing!=2.0.4,>=1.5.6 in /usr/local/lib/python2.7/dist-packages (from matplotlib->descartes->ge
opandas)
Requirement already satisfied (use --upgrade to upgrade): click>=3.0 in /usr/local/lib/python2.7/dist-packages (from click-plugins->fiona->geopandas)
Installing collected packages: descartes, geopandas
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 742, in install
**kwargs
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 317, in clobber
ensure_dir(destdir)
File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/descartes'
Any help would be appreciated.