ValueError:无法在package pip._vendor.distlib中找到资源t64.exe

发布于 2025-01-26 22:17:20 字数 624 浏览 4 评论 0原文

我正在尝试运行TOX命令,但它显示错误

ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

ERROR: python3.7: could not install deps [-rrequirements.txt]; 
v = InvocationError("'C:\\path\\test_tox\\.tox\\python3.7\\Scripts
\\python.EXE' -m pip install -rrequirements.txt", 2)

尝试了Internet中可用的大多数解决方案,但似乎没有任何作用。我不确定此

sumpliont.txt

dvc
dvc[gdrive]
sklearn
pandas
pytest
tox

“在此处输入图像说明”

i am trying to run tox commands but it shows error

ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

ERROR: python3.7: could not install deps [-rrequirements.txt]; 
v = InvocationError("'C:\\path\\test_tox\\.tox\\python3.7\\Scripts
\\python.EXE' -m pip install -rrequirements.txt", 2)

have tried most of the solution available in internet, but nothing seems to be working. i am not sure what is the root cause of this

requirements.txt:

dvc
dvc[gdrive]
sklearn
pandas
pytest
tox

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

迷你仙 2025-02-02 22:17:20

卸载setuptools:

python -m pip uninstall pip setuptools

升级pip:

python -m pip install --upgrade pip

重新安装setuptools:

pip install --upgrade setuptools

Uninstall SetupTools:

python -m pip uninstall pip setuptools

Upgrade PIP:

python -m pip install --upgrade pip

Reinstall Setuptools:

pip install --upgrade setuptools
别理我 2025-02-02 22:17:20

下面的命令对我有用,感谢 Colonel Panic

python -m pip uninstall pip setuptools
python -m ensurepip
python -m pip install --upgrade pip

Below command works for me, thanks to Colonel Panic:

python -m pip uninstall pip setuptools
python -m ensurepip
python -m pip install --upgrade pip
君勿笑 2025-02-02 22:17:20

@Techno-Appear提供的答案工作,但是我必须这样做

py -m pip install --upgrade pip

,如果这不起作用,请pip本身(通过警告消息)要做:

python.exe -m pip install --upgrade pip

Answer provided by @techno-appear worked, however I had to do

py -m pip install --upgrade pip

And if that doesn't work, Pip itself advices (through a warning message) to do:

python.exe -m pip install --upgrade pip
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文