2

I have easy_install and pip installed on my system. I have tried installing a number of different packages such as Twisted and Scrapy and keep getting following error message:

Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_vagrant/cryptography

I am running OS X 10.9 and have tried it on my local machine as well as an Ubuntu virtual machine in vagrant. Regardless of what I do I keep getting some variation of the above error. Oddly enough, I can install some packages like Flask, Django and few others.

I have tried this using virtualenv and to no avail.

Here is one example of an error:

Command /Users/meblumen/Desktop/Virtual_Environments/scraper/bin/python -c "import setuptools, tokenize;__file__='/Users/user1/Desktop/Virtual_Environments/scraper/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bs/lkq_06gs33s1s_56zywwds2w0000gn/T/pip-Wk9wD5-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user1/Desktop/Virtual_Environments/scraper/include/site/python2.7 failed with error code 1 in /Users/user1/Desktop/Virtual_Environments/scraper/build/lxml
Storing debug log for failure in /Users/user1/.pip/pip.log

That was after trying to install lxml by using pip install lxml. Any insight would be greatly appreciated.

rypel
  • 4,686
  • 2
  • 25
  • 36
  • 3
    Please provide more information: complete error messages, what versions of things you have installed, the exact sequence of commands you've entered, your environment, and particularly, how you installed pip and easy_install. – Glyph Apr 24 '14 at 03:07
  • I am running Python 2.7. I installed pip on my OS X install via easy_install. In Ubuntu it was installed using setuptools. From a command perspective all I was entering was: pip install [package name] whereby [package name] was something like: twisted or scrapy I also tried: easy_install scrapy – user3567060 Apr 24 '14 at 03:29
  • 2
    You still haven't properly described the failure. Try including a complete transcript of your install attempt in the question. – Jean-Paul Calderone Apr 24 '14 at 12:10
  • 1
    For example, when you say "via easy_install", what was the exact easy_install command line you used? Did you install a new version of easy_install first or did you use the system one? – Glyph Apr 24 '14 at 20:28
  • @Glyph, to answer your question, I believe I used the system version. I tried doing an installation using virtualenv and in a Vagrant ubuntu virtual machine. I updated my post to include the entirity of 1 error message I received. One thing I am wondering that might have caused the problem is I installed Anaconda a week or so ago to try out some of the scikit-learn, panda etc... packages. Could it have something to do with my PATH? Sorry for all the dumb questions but I am very new to this and clearly quite confused. – user3567060 Apr 28 '14 at 03:37
  • This stuff can get very confusing. The best thing that you can do to get started is to un-install Anaconda. It frequently causes problems like this, especially on Macs. Second, do you notice how that error message ends with telling you to inspect `~/.pip/pip.log`? Perhaps the contents of that file are interesting :). (You will need to re-produce the error and then copy it right away; `pip.log` gets over-written each time `pip` runs.) – Glyph Apr 30 '14 at 08:36
  • @Glyph, thanks for all your help. It appears that this might be the issue: http://stackoverflow.com/questions/22703393/clang-error-unknown-argument-mno-fused-madd-wunused-command-line-argumen The thing that solved it was this but I don't understand what is actually taking place: ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install – user3567060 May 04 '14 at 00:29

0 Answers0