Re: Permissions on files installed by pip?
On 2014-10-17, Jean-Michel Pichavant wrote: - Original Message - From: Adam Funk a24...@ducksburg.com To: python-list@python.org Sent: Thursday, 16 October, 2014 9:29:46 PM Subject: Permissions on files installed by pip? I've been using the python-nltk package on Ubuntu, but I need ntlk 3.0 now. I used 'sudo aptitude purge python-nltk' to get rid of my existing installation, followed instructions on the nltk website [1] starting at step 4 (since I already have python-pip python-numpy packages installed). $ sudo pip install -U I couldn't get it to work, until I realized that the permissions ownership on /usr/local/lib/python2.7/dist-packages were 'drwx--S--- root staff'. A 'chmod -R a+rX' on that directory seems to have fixed it. Is it normal for sudo pip install to set the permissions that way, or did I do something wrong? On debian wheezy: ls -al /usr/local/lib/python2.7/dist-packages drwxrwsr-x 5 root staff 4.0K Jun 30 15:16 ./ I'm not sure pip is responsible for this anyway, so my money goes on you did something wrong :) Probably something to do with the way I have sudo set up then. Thanks. -- Everybody says sex is obscene. The only true obscenity is war. --- Henry Miller -- https://mail.python.org/mailman/listinfo/python-list
Re: Permissions on files installed by pip?
- Original Message - From: Adam Funk a24...@ducksburg.com To: python-list@python.org Sent: Thursday, 16 October, 2014 9:29:46 PM Subject: Permissions on files installed by pip? I've been using the python-nltk package on Ubuntu, but I need ntlk 3.0 now. I used 'sudo aptitude purge python-nltk' to get rid of my existing installation, followed instructions on the nltk website [1] starting at step 4 (since I already have python-pip python-numpy packages installed). $ sudo pip install -U I couldn't get it to work, until I realized that the permissions ownership on /usr/local/lib/python2.7/dist-packages were 'drwx--S--- root staff'. A 'chmod -R a+rX' on that directory seems to have fixed it. Is it normal for sudo pip install to set the permissions that way, or did I do something wrong? On debian wheezy: ls -al /usr/local/lib/python2.7/dist-packages drwxrwsr-x 5 root staff 4.0K Jun 30 15:16 ./ I'm not sure pip is responsible for this anyway, so my money goes on you did something wrong :) JM -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. -- https://mail.python.org/mailman/listinfo/python-list
Permissions on files installed by pip?
I've been using the python-nltk package on Ubuntu, but I need ntlk 3.0 now. I used 'sudo aptitude purge python-nltk' to get rid of my existing installation, followed instructions on the nltk website [1] starting at step 4 (since I already have python-pip python-numpy packages installed). $ sudo pip install -U I couldn't get it to work, until I realized that the permissions ownership on /usr/local/lib/python2.7/dist-packages were 'drwx--S--- root staff'. A 'chmod -R a+rX' on that directory seems to have fixed it. Is it normal for sudo pip install to set the permissions that way, or did I do something wrong? [1] http://www.nltk.org/install.html -- Master Foo once said to a visiting programmer: There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.--- Eric Raymond -- https://mail.python.org/mailman/listinfo/python-list