0

When I tried to install numpy with pip -

pip install numpy==1.8.1

I get this error message -

----------------------------------------
Cleaning up...
  Removing temporary dir C:\Users\mj\AppData\Local\Temp\pip_build_mj...
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\mj\\AppData\\Local\\Temp\\pip_build_mj\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\mj\AppData\Local\Temp\pip-vq4grnqj-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\mj\AppData\Local\Temp\pip_build_mj\numpy
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "C:\Python34\lib\site-packages\pip\req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "C:\Python34\lib\site-packages\pip\req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "C:\Python34\lib\site-packages\pip\util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\mj\\AppData\\Local\\Temp\\pip_build_mj\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\mj\AppData\Local\Temp\pip-vq4grnqj-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\mj\AppData\Local\Temp\pip_build_mj\numpy

I already installed VC++ from offical website of Microsoft. Here is the overall stacktrace.

2 Answers 2

1

Best way to solve this is to download unofficial binaries from - http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy.
In my case that will be scipy‑0.14.0.win‑amd64‑py3.4.exe.

Sign up to request clarification or add additional context in comments.

Comments

1

You can try the anaconda Python distribution that includes scipy and many scientific packages: https://store.continuum.io/cshop/anaconda/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.