Windows Python 64及更高版本32位版本和pip [英] Windows Python 64 & 32 bit versions and pip
问题描述
我制作了一个简单的python脚本,并通过pyinstaller从中构建了一个64位Windows可执行文件.但是,我办公室中的大多数计算机都运行32位Windows操作系统,因此我的程序无法正常工作.根据我的阅读,只要使用32位版本的python,就可以为32位系统创建可执行文件.因此,我继续安装了32位版本的python 3.5,但是我找不到将pip链接到32位版本的python的方法,因此我可以安装所有必需的模块.每次我叫pip时,它都会显示安装在64位版本上的所有模块,即使默认情况下,我正在运行32位版本的python.
I have made a simple python script and built a 64-bit Windows executable from it via pyinstaller. However, most computers at my office run 32-bit Windows operating systems, thus my program does not work. From what I have read, it is possible to make an executable for 32-bit systems as long as I use the 32-bit version of python. So I went ahead and installed the 32-bit version of python 3.5, but I can't find the way to link pip to the 32-bit version of python so I can install all the necessary modules. Every time I call pip it displays all the modules that are installed on the 64-bit version, even though by default I am running the 32-bit version python.
推荐答案
在安装32位和64位版本的Python时,我也遇到了类似的问题.我发现如果我从pip.exe的位置在命令提示符中运行了pip安装,它运行正常.就我而言,文件路径如下:
I had a similar problem with both 32 and 64-bit versions of Python installed. I found if I ran the pip install in the command prompt from the location of pip.exe it worked fine. In my case, the file path was the following:
C:\ Program Files \ Python \ 3.5 \ Scripts
C:\Program Files\Python\3.5\Scripts
这篇关于Windows Python 64及更高版本32位版本和pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!