如何在python 3.4-.whl文件中安装 [英] How to install in python 3.4 - .whl files

查看:168
本文介绍了如何在python 3.4-.whl文件中安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我尝试重新安装python 3.4的numpy,因为我有了新电脑,目前正在挣扎.我使用的是Windows 8.1,根据我的记忆,我以前曾使用过一个.exe文件,该文件可以为我完成所有工作.但是,这次给我一个.whl文件(显然这是一个车轮"文件),我不知道如何安装.

I recently tried to re-install numpy for python 3.4, since I got a new computer, and am struggling. I am on windows 8.1, and from what I remember I previously used a .exe file that did everything for me. However, this time I was given a .whl file (apparently this is a "Wheel" file), which I cannot figure out how to install.

其他帖子解释说我必须使用PIP,但是关于如何安装我已经找到的这些文件的解释令人恐惧.我见过的命令"python install pip"或"pip install numpy"或所有其他各种命令仅返回一个错误,即无法将python识别为内部或外部命令,可操作程序或批处理文件"或"pip is不被认为是内部人员....".

Other posts have explained that I have to use PIP, however the explanations of how to install these files that I have been able to find are dreadful. The command "python install pip" or "pip install numpy" or all the other various commands I have seen only return an error that "python is not recognized as an internal or external command, operable program or batch file", or "pip is not recognised as an internal...." ect.

我也尝试过"python3.4","python.exe"和许多其他程序,因为它不喜欢python.我下载的numpy文件的文件名为"numpy-1.9.2 + mkl-cp34-none-win_amd64.whl".

I have also tried "python3.4", "python.exe" and many others since it does not like python. The file name of the numpy file that I downloaded is "numpy-1.9.2+mkl-cp34-none-win_amd64.whl".

所以任何人都可以给我一个详细教程,以了解如何使用它们,因为从所有模块的外观来看,它们现在都在使用.另外,为什么人们停止使用.exe文件来安装这些文件?这么简单!

So can anybody give me a Detailed tutorial of how to use these, as by the looks of things all modules are using these now. Also, why did people stop using .exe files to install these? It was so much easier!

推荐答案

Python 3.4附带了PIP,因此您应该能够在安装Python 3.4之后立即开始使用PIP.仅当path环境变量中包含PIP的路径时,类似pip install <packagename>的命令才起作用.如果不是,并且您不想编辑环境变量,则需要提供完整路径. Python 3.4中PIP的默认位置在C:\Python34\Scripts\pip3.4.exe中.如果该文件存在(应该),请输入命令C:\Python34\Scripts\pip3.4.exe install <numpy_whl_path>,其中<numpy_whl_path>是numpy .whl文件的完整路径.例如:C:\Python34\Scripts\pip3.4.exe install C:\Users\mwinfield\Downloads\numpy‑1.9.2+mkl‑cp34‑none‑win_amd64.whl.

Python 3.4 comes with PIP already included in the package, so you should be able to start using PIP immediately after installing Python 3.4. Commands like pip install <packagename> only work if the path to PIP is included in your path environment variable. If it's not, and you'd rather not edit your environment variables, you need to provide the full path. The default location for PIP in Python 3.4 is in C:\Python34\Scripts\pip3.4.exe. If that file exists there (it should), enter the command C:\Python34\Scripts\pip3.4.exe install <numpy_whl_path>, where <numpy_whl_path> is the full path to your numpy .whl file. For example: C:\Python34\Scripts\pip3.4.exe install C:\Users\mwinfield\Downloads\numpy‑1.9.2+mkl‑cp34‑none‑win_amd64.whl.

这篇关于如何在python 3.4-.whl文件中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆