我在为 python 安装 xlrd 0.9.2 时遇到了很多麻烦

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20461790/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 20:30:37  来源:igfitidea点击:

I'm having a lot of trouble installing xlrd 0.9.2 for python

pythoninstallationxlrd

提问by user3081261

Can someone give me a guide for morons? I am somewhat out of my depth here. So far I have downloaded xlrd 0.9.2 and tried to follow the readme, but neither I nor ctrl-f can find the installer mentioned.

有人可以给我一个白痴指南吗?我在这里有点超出我的深度。到目前为止,我已经下载了 xlrd 0.9.2 并尝试按照自述文件进行操作,但是我和 ctrl-f 都找不到提到的安装程序。

采纳答案by Joran Beasley

download

下载

The current version of xlrd can be found here: https://pypi.python.org/pypi/xlrd

可以在此处找到 xlrd 的当前版本:https://pypi.python.org/pypi/xlrd

extract the folder somewhere

将文件夹解压缩到某处

go to the folder you extracted to ... find setup.py

转到您解压缩到的文件夹...找到 setup.py

open command window (start -> run-> cmd)

打开命令窗口(开始-> 运行-> cmd)

cd into the directory with setup.py

cd 到 setup.py 目录

type: python setup.py install

类型: python setup.py install

you may need setup tools (which can be gotten here https://pypi.python.org/pypi/setuptools#installation-instructions)

您可能需要设置工具(可以在此处获取https://pypi.python.org/pypi/setuptools#installation-instructions

回答by M4rtini

If windows this should work. Browser to "folder with python"\scripts Open cmd here (shift + right click and and it should be an option in the context menu.)

如果 Windows 这应该工作。浏览器到“带有 python 的文件夹”\scripts 在此处打开 cmd(shift + 右键单击​​,它应该是上下文菜单中的一个选项。)

type inn: easy_install.exe xlrd
It should download and install if for you.

输入 inn: easy_install.exe xlrd
如果适合你,它应该下载并安装。

回答by Anivarth

I don't think that it is really necessary for you to download the file from pypi because you have the following easy option:

我不认为你真的有必要从 pypi 下载文件,因为你有以下简单的选择:

$ pip install xlrd

As simple as that! You can install it using pip, easy_install, virtualenv or even install the module manually.

就如此容易!您可以使用 pip、easy_install、virtualenv 安装它,甚至可以手动安装模块。

The method of downloading the file(s) and installing is called manual installation.

下载文件并安装的方法称为手动安装。

You can do that after you have unzipped the folder and then cd to the folder and do the following:

您可以在解压缩文件夹后执行此操作,然后 cd 到该文件夹​​并执行以下操作:

$ python setup.py install

回答by Rubaiyat Jahan Mumu

If you have installed pipwhich is available with python installation file; then just do the following steps:

如果你已经安装了 python 安装文件中提供的pip;然后只需执行以下步骤:

  1. Open Command Line
  2. Type "pip install xlrd"
  1. 打开命令行
  2. 输入“pip install xlrd”

Hope it will work

希望它会起作用