pip无法安装numpy错误代码1 [英] pip fails to install numpy error code 1
本文介绍了pip无法安装numpy错误代码1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用pip安装numpy.当我在命令提示符下键入pip install numpy
时,它可以工作,但不会安装文件并返回错误代码1
.我使用的是Windows 8 64位和python 2.7.这是错误消息的最后一位
I'm trying to install numpy using pip. When I type pip install numpy
in the command prompt it goes to work but won't install the file and returns an error code 1
. I am using windows 8 64-Bit and python 2.7.This is the final bit of the error message
Cleaning up...
Removing temporary dir c:\users\pim\appdata\local\temp\pip_build_Pim...
Command python setup.py egg_info failed with error code 1 in c:\users\pim\appdata\local\temp\pip_build_Pim\numpy
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\commands\install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\req.py", line 1134, in prepare_files
req_to_install.run_egg_info()
File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\req.py", line 259, in run_egg_info
command_desc='python setup.py egg_info')
File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in c:\users\pim\appdata\local\temp\pip_build_Pim\numpy
推荐答案
安装扩展模块可能是pip的问题.这就是conda存在的原因. conda是开源的BSD许可的跨平台程序包管理器.它可以轻松安装NumPy.
Installing extension modules can be an issue with pip. This is why conda exists. conda is an open-source BSD-licensed cross-platform package manager. It can easily install NumPy.
两个选项:
- 安装Anaconda( http://www.continuum.io/downloads )
- 安装Miniconda( http://repo.continuum.io/miniconda/index.html ),然后安装转到命令行并键入
conda install numpy
(确保PATH包含conda所安装的位置).
- Install Anaconda (http://www.continuum.io/downloads)
- Install Miniconda (http://repo.continuum.io/miniconda/index.html) and then go to a command-line and type
conda install numpy
(make sure your PATH includes the location conda was installed to).
这篇关于pip无法安装numpy错误代码1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文