[Distutils] setuptools

Peter Hodges phodges at id.iit.edu
Thu May 28 23:49:40 CEST 2015


Newbie to Python
Goal try to use NLTK

Mac OSX 10
I downloaded and installed python 3.5

Next I went to the NLTK site.
It has instructions about easy_install and setup tools.

I went to the Linux and Mac OS line:

curl https://bootstrap.pypa.io/ez_setup.py -o - | python


I entered this in a terminal window:


curl https://bootstrap.pypa.io/ez_setup.py -o - | python

  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current

                                 Dload  Upload   Total   Spent    Left
Speed

100 11432  100 11432    0     0  49709      0 --:--:-- --:--:-- --:--:--
49921

Downloading
https://pypi.python.org/packages/source/s/setuptools/setuptools-16.0.zip

Extracting in /var/folders/fy/c6gf5sxx7px6p0tyj9ks3dw80000gn/T/tmpI86dYV

Now working in
/var/folders/fy/c6gf5sxx7px6p0tyj9ks3dw80000gn/T/tmpI86dYV/setuptools-16.0

Installing Setuptools

running install

Checking .pth file support in /Library/Python/2.7/site-packages/

error: can't create or remove files in install directory


The following error occurred while trying to add or remove files in the

installation directory:


    [Errno 13] Permission denied:
'/Library/Python/2.7/site-packages/test-easy-install-702.pth'


The installation directory you specified (via --install-dir, --prefix, or

the distutils default setting) was:


    /Library/Python/2.7/site-packages/


Perhaps your account does not have write access to this directory?  If the

installation directory is a system-owned directory, you may need to sign in

as the administrator or "root" account.  If you do not have administrative

access to this machine, you may wish to choose a different installation

directory, preferably one that is listed in your PYTHONPATH environment

variable.


For information on other options, you may wish to consult the

documentation at:


  https://pythonhosted.org/setuptools/easy_install.html


Please make the appropriate changes for your system and try again.


Something went wrong during the installation.

See the error message above.


I looked at the PATH variable:


dhcp127-219:~ phodges$ echo $PATH

/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

dhcp127-219:~ phodges$

I would appreciate any suggestions on how to proceed.
Thanks,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150528/f0a4eb1e/attachment.html>


More information about the Distutils-SIG mailing list