question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python setup.py install fails on my OS X machine

See original GitHub issue

Relatively fresh machine:

janjon01:~/repos/mbed-cli (master) $ python setup.py install
running install
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 2] No such file or directory: '/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/test-easy-install-70456.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

7reactions
screamerbgcommented, May 24, 2016

Have you tried sudo python setup.py install?

3reactions
janjongboomcommented, May 24, 2016
mkdir /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

fixes it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation using setup.py is now impossible on macOS Big Sur
I have 2 of my projects that install perfectly fine on ubuntu, both require python3.8, both are installable using python setup.py install ......
Read more >
How to fix 'setup.py –no-user-cfg install' error for pip on macOS
In order to fix the 'setup.py –no-user-cfg install' error, and install pip on macOS, you need to use a different command. Open Terminal,...
Read more >
How to set up Setuptools for Python on MacOS?
Method 1: Using pip to install Setuptools Package ; Step 1: Install the current version of Python3 in macOS. ; Step 2: Check...
Read more >
2. Writing the Setup Script — Python 3.11.1 documentation
The Distutils ' own setup script, shown here, is used to install the package ... a file foo/__init__.py (which might be spelled differently...
Read more >
Install spaCy · spaCy Usage Documentation
How to do that depends on your system. See notes on Ubuntu, macOS / OS X and Windows for details. python -m pip...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found