[英]Error while installing numpy in python 3.4.1
當我嘗試使用pip安裝numpy時-
pip install numpy==1.8.1
我收到此錯誤消息-
----------------------------------------
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
我已經從Microsoft的官方網站安裝了VC ++。 這是總體stacktrace 。
解決這個最好的方法是從下載非官方的二進制文件- http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy 。
就我而言,將是scipy-0.14.0.win-amd64-py3.4.exe 。
您可以嘗試包含scipy
和許多科學軟件包的anaconda Python發行版: https : scipy
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.