python - Error from installing Django using pip on mac -


hello i'm getting error on mac when tried installing django using pip. created directory , virtual environment. ran error when attempting install django.

exception: traceback (most recent call last): file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/basecommand.py", line 209, in main status = self.run(options, args) file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/commands/install.py", line 317, in run prefix=options.prefix_path, file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/req/req_set.py", line 731, in install **kwargs file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/req/req_install.py", line 841, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/req/req_install.py", line 1040, in move_wheel_files isolated=self.isolated, file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/wheel.py", line 343, in move_wheel_files clobber(source, lib_dir, true) file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/wheel.py", line 314, in clobber ensure_dir(destdir) file "/library/python/2.7/site-packages/pip-8.0.2-py2.7.egg/pip/utils/__init__.py", line 82, in ensure_dir os.makedirs(path) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) oserror: [errno 13] permission denied: '/library/python/2.7/site-packages/django' 

have activated virtual environment?

source env/bin/activate

it looks running default pip , don't have permission install directory. if run sudo pip install django should work.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -