简体   繁体   English

64位Windows 7上的Python 32或64? 如何安装easy_install?

[英]Python 32 or 64 on 64 bit Windows 7? How will this effect installing easy_install?

I wrote some python code on my mac and how I have to transfer it over to a windows computer. 我在我的mac上编写了一些python代码,以及如何将其转移到Windows计算机上。 This is frustrating beyond words. 这令人沮丧,无法言语。 I installed Python 2.7 x32, then I uninstalled it, then I installed Python 2.7 x64. 我安装了Python 2.7 x32,然后我卸载了它,然后我安装了Python 2.7 x64。 My python script depends on xlrd and xlwt, and some other downloaded modules. 我的python脚本依赖于xlrd和xlwt以及其他一些下载的模块。 I would like to install those using easy_install or pip or any way that is easy for somebody who doesn't know too much about the really intricate workings of a computer. 我想安装那些使用easy_install或pip或任何方式,这对那些不太了解计算机真正错综复杂的工作的人来说很容易。 As of now, if I do this: 截至目前,如果我这样做:

C:\Windows\System32> python

I get: 我明白了:

'python' is not recognized as an internal or external command operable program or batch file. 

这是我的python文件夹

这是Scripts文件夹

这些是我的环境变量

Would someone suggest a next move for me? 有人会建议我下一步吗?

I did a bunch of google-ing and stackoverflow-ing and seem to have landed here , I'm not sure how to download something from here. 我做了一堆google-ing和stackoverflowing,似乎已经降落在这里 ,我不知道如何从这里下载一些东西。 For example, how would I download Pip, and also, which one would I download? 例如,我如何下载Pip,以及我下载哪一个?

People say that a person should download and install this , how would I do that? 人们说一个人应该下载并安装 ,我怎么做?

I'm familiar with terminal, what would I type into cmd? 我对终端很熟悉,我会在cmd中输入什么内容?

The reason that I things were not going well for me was because I was using a mixture of Python 2.7 (32-bit) and Python 2.7 (64-bit). 我事情进展不顺利的原因是因为我使用的是Python 2.7(32位)和Python 2.7(64位)的混合体。 After more researching I found that even though my Windows 7 was 64 bit, I didn't have to download the 64-bit python. 经过更多的研究,我发现即使我的Windows 7是64位,我也不必下载64位python。 In fact, the 32-bit python was more compatible with other programs. 事实上,32位python与其他程序更兼容。 So I clicked around and uninstalled python and everything else that had the name 'Python' in it from my Add/Remove programs menu. 所以我点击并从我的添加/删除程序菜单中卸载了python以及其中名为'Python'的所有内容。 This took about 10 minutes. 这花了大约10分钟。 Next, I downloaded the 32-bit Python 2.7. 接下来,我下载了32位Python 2.7。 After this, all of the packages that I download, I made sure that they were 32-bit and not 64-bit. 在此之后,我下载的所有软件包,我都确保它们是32位而不是64位。

Also, very important, I went to my 'Environment Variables' (google how to get there) and added the directory of where Python27 was installed. 此外,非常重要,我去了我的'环境变量'(谷歌如何到达那里)并添加了Python27安装位置的目录。 To do this you can follow this guide. 为此,您可以按照指南操作。 The last thing that I did was add ;.PY to the end of PATHEXT. 我做的最后一件事是添加; .PY到PATHEXT的末尾。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM