Forums

Can't install flask_googleauth

Hi,

I setup a flask web application(free domain) and I'm trying to use the flask_googleauth as part of my login process but the thing is I can't install the flask_googleauth. When I try to run

<code>pip install flask_googleauth</code>

I got an error:<br> <code> error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/flask_googleauth.py'


Cleaning up... Removing temporary dir /tmp/pip_build_saving4dfuture... Command /usr/local/bin/python2.7 -c "import setuptools, tokenize;file='/tmp/pip_build_saving4dfuture/flask-googleauth/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ivwuEh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_saving4dfuture/flask-googleauth Exception information: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1435, in install requirement.install(install_options, global_options, args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 706, in install cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command /usr/local/bin/python2.7 -c "import setuptools, tokenize;file='/tmp/pip_build_saving4dfuture/flask-googleauth/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ivwuEh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_saving4dfuture/flask-googleauth </code>

My bad...

should run pip install --user flask_googleauth

thanks.

always nice to see someone answer their own question :)