gpt4 book ai didi

pip - 可移植 python - 无法安装 pip

转载 作者:行者123 更新时间:2023-12-04 13:39:23 27 4
gpt4 key购买 nike

我正在尝试在我的 USB 驱动器上获取 pip。按照 this web sit 上的说明进行操作, 我下载了 get-pip.py并运行 python get-pip.py ( python 在环境路径中)。不幸的是脚本通过一个错误。我已将日志文件上传到 here .错误本身是:

Exception:
Traceback (most recent call last):
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2251, in parsed_version
return self._parsed_version
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2344, in __getattr__
raise AttributeError(attr)
AttributeError: _parsed_version

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2259, in version
return self._version
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2344, in __getattr__
raise AttributeError(attr)
AttributeError: _version

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\commands\install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\req.py", line 1420, in install
if existing_distribute in distribute_requirement:
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2643, in __contains__
if self.index: item = item.parsed_version # only get if we need it
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2253, in parsed_version
self._parsed_version = pv = parse_version(self.version)
File "c:\users\elyashic\appdata\local\temp\tmprkcrtx\pip.zip\pip\_vendor\pkg_resources.py", line 2267, in version
"Missing 'Version:' header and/or %s file" % self.PKG_INFO, self
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", distribute [unknown version] (i:\portableapps\portable python 3.2.5.1\app\scripts))

任何人都可以向我解释我做错了什么吗?

我使用的是可移植 python 3.2.5.1,从安装开始直到我尝试安装 pip 时它都是全新的。

最佳答案

我在使用相同版本的 Portable Python 3.2.5.1 时遇到了同样的问题。由于脚本内部的一些语法错误,位于 App\Scripts\easy_install.py 中的 easy_install.py 脚本对我来说也被破坏了。

经过无数个死胡同,我找到了https://winpython.github.io/ .它从可移植 Python 停止的地方开始。

关于pip - 可移植 python - 无法安装 pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23888109/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com