python - Can't install on Mac using pip or easy_install in terminal -


i new mac. first time switch windows mac. in windows, didn't have problems using commands below in cmd:

pip install django 

now, when tried install on mac using same command in terminal, error13: permission denied.

exception: traceback (most recent call last):   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main     status = self.run(options, args)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run     prefix=options.prefix_path,   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install     **kwargs   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files     isolated=self.isolated,   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files     clobber(source, lib_dir, true)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber     ensure_dir(destdir)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, 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' 

thank in advance!

you need access directory. can using sudo (super user do).

sudo pip install django 

you have type in password after command above.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -