OSError: [Errno 13] Permission denied:... /_dummy_thread

463 views
Skip to first unread message

Mel DeJesus

unread,
Nov 5, 2017, 1:29:58 PM11/5/17
to Django users


Any suggestions? --> 

After attempting pip install -r requirements.txt in a virtual environment, I got a number of files loaded before getting this: 

Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/Library/Python/2.7/site-packages/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/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/Library/Python/2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/Library/Python/2.7/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/Library/Python/2.7/site-packages/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/_dummy_thread

Vineet Kothari

unread,
Nov 5, 2017, 1:33:07 PM11/5/17
to django...@googlegroups.com
Use sudo

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/14fac784-dfdb-481b-b6bc-bf03f8499871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mel DeJesus

unread,
Nov 5, 2017, 1:36:18 PM11/5/17
to Django users
as in: 
sudo pip install -r requirements.txt 
?
Use sudo

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Mel DeJesus

unread,
Nov 5, 2017, 1:40:02 PM11/5/17
to Django users
Do that only leads to another permission denied error - 

Installing collected packages: argparse, configparser, konfig, pyzmq, inflect, jaraco.itertools, tempora, jaraco.stream, jaraco.classes, backports.functools-lru-cache, jaraco.functools, jaraco.text, jaraco.collections, jaraco.logging, irc, webob, WSGIProxy2, greenlet, gevent, psutil, waitress, beautifulsoup4, webtest, ws4py, ujson, loads
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/Library/Python/2.7/site-packages/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/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/Library/Python/2.7/site-packages/pip/wheel.py", line 377, in move_wheel_files
    clobber(source, dest, False, fixer=fixer, filter=filter)
  File "/Library/Python/2.7/site-packages/pip/wheel.py", line 287, in clobber
    ensure_dir(dest)  # common for the 'include' path
  File "/Library/Python/2.7/site-packages/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 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet'

Vineet Kothari

unread,
Nov 6, 2017, 1:25:38 AM11/6/17
to django...@googlegroups.com

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Avraham Serour

unread,
Nov 6, 2017, 4:31:06 AM11/6/17
to django-users
don't use sudo to pip install packages, you should create a virtualenv for your project

Reply all
Reply to author
Forward
0 new messages