don't use sudo to pip install packages, you should create a virtualenv for
your project

On Mon, Nov 6, 2017 at 8:24 AM, Vineet Kothari <me.vineetkoth...@gmail.com>
wrote:

> try to update your python : https://stackoverflow.com/
> questions/2720014/upgrading-all-packages-with-pip
>
> On Mon, Nov 6, 2017 at 12:10 AM, Mel DeJesus <meldejesu...@gmail.com>
> wrote:
>
>> 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/Py
>> thon.framework/Versions/2.7/include/python2.7/greenlet'
>>
>>
>> On Sunday, November 5, 2017 at 1:36:18 PM UTC-5, Mel DeJesus wrote:
>>>
>>> as in:
>>> sudo pip install -r requirements.txt
>>> ?
>>>
>>> On Sunday, November 5, 2017 at 1:33:07 PM UTC-5, me.vineetkothari wrote:
>>>>
>>>> Use sudo
>>>>
>>>> On Nov 6, 2017 12:00 AM, "Mel DeJesus" <meldej...@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>> 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-pack
>>>> ages/_dummy_thread
>>>>
>>>> --
>>>> 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...@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/ms
>>>> gid/django-users/14fac784-dfdb-481b-b6bc-bf03f8499871%40goog
>>>> legroups.com
>>>> <https://groups.google.com/d/msgid/django-users/14fac784-dfdb-481b-b6bc-bf03f8499871%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@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/ms
>> gid/django-users/c204f9f5-ed1d-4239-b64d-bac70b62c8b5%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c204f9f5-ed1d-4239-b64d-bac70b62c8b5%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/CAAcansvYSkLi9Qdvh-N2t%3DeKQmQBc5Y%3Dr%
> 3D3zJ61ph4KHkhuN8w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAAcansvYSkLi9Qdvh-N2t%3DeKQmQBc5Y%3Dr%3D3zJ61ph4KHkhuN8w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAFWa6t%2B-X%2BCjQ%3D4%3DNu%3DFwyyssonV3bQGY23sSZ3BR8SU16F9Xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to