【发布时间】:2018-08-14 16:36:58
【问题描述】:
我以前从未使用 pip 下载过,所以我可能会做一些愚蠢的事情,但我看过教程。 我在 cmd 中使用 pip 安装,使用 python34/Scripts 的路径(这是 pip 所在的位置)。 我正在获取控制台输出:
C:/Python34/Scripts>pip install pyinstaller
Downloading/unpacking pyinstaller
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement
pyinstaller
Cleaning up...
No distributions at all found for pyinstaller
Storing debug log for failure [...]
我尝试使用 pip3:
C:\Python34\Scripts>pip3 install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.3.1.tar.gz
Requirement already satisfied: setuptools in
c:\python34\lib\site-packages (from pyinstaller)
Collecting pefile>=2017.8.1 (from pyinstaller)
Using cached pefile-2017.11.5.tar.gz
Collecting macholib>=1.8 (from pyinstaller)
Using cached macholib-1.9-py2.py3-none-any.whl
Collecting future (from pyinstaller)
Using cached future-0.16.0.tar.gz
Collecting pypiwin32 (from pyinstaller)
Using cached pypiwin32-223-py3-none-any.whl
Collecting altgraph>=0.15 (from macholib>=1.8->pyinstaller)
Using cached altgraph-0.15-py2.py3-none-any.whl
Collecting pywin32>=223 (from pypiwin32->pyinstaller)
Could not find a version that satisfies the requirement
pywin32>=223 (from pypiwin32->pyinstaller) (from versions: )
No matching distribution found for pywin32>=223 (from
pypiwin32->pyinstaller)
找不到满足pywin32>=223要求的版本
这可能是因为不支持 python 3.4 吗?我会尝试下载 3.6
我尝试下载 3.6,由于某种原因,它最终在 C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6
我在附近找不到点子。我可以将点子从 3.4 拖到 3.6 吗?
尝试将其拖过来,然后从目录C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6 运行pip3 install pyinstaller。得到与 3.4 目录中的 pip3 相同的错误。
在这一点上,我不知所措。我确定我做错了什么,但我不知道是什么。任何帮助将不胜感激!
【问题讨论】:
-
不,您不能只是将点数从 3.4 拖到 3.6。但是 3.6 应该已经安装并更新了
py启动器。如果你只是在命令提示符下运行py,你会得到 Python 3.6 吗?如果是这样,py -m pip install pyinstaller将为 3.6 安装它。 -
另外,你还需要 Python 3.4 吗?如果你卸载它并且只有一个 Python,你的生活会更轻松。
-
最后,只是为了确认一下:你 100% 正确地解释了它为什么不工作:当前版本的 pyinstaller 需要最新版本的 pywin32,而 pywin32 放弃了对 3.4 的支持,所以你可以没有足够新的版本。
标签: python pip pyinstaller