首页 > 编程知识 正文

python无法pip install,python安装pip失败

时间:2023-05-03 23:41:32 阅读:194741 作者:2703

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:userspimappdatalocaltemppip_build_Pim...

Command python setup.py egg_info failed with error code 1 in c:userspimappdatalocaltemppip_build_Pimnumpy

Exception information:

Traceback (most recent call last):

File "C:Python27libsite-packagespip-1.4.1-py2.7.eggmldgzbasecommand.py", line 134, in main

status = self.run(options, args)

File "C:Python27libsite-packagespip-1.4.1-py2.7.eggmldgzcommandsinstall.py", line 236, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File "C:Python27libsite-packagespip-1.4.1-py2.7.eggmldgzreq.py", line 1134, in prepare_files

req_to_install.run_egg_info()

File "C:Python27libsite-packagespip-1.4.1-py2.7.eggmldgzreq.py", line 259, in run_egg_info

command_desc='python setup.py egg_info')

File "C:Python27libsite-packagespip-1.4.1-py2.7.eggmldgzutil.py", line 670, in call_subprocess

% (command_desc, proc.returncode, cwd))

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.

Two options:

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).

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。