使用PIPX安装ETH-BROWNIE的错误:“ no Python at:<旧Python安装的位置;

发布于 2025-01-17 10:15:48 字数 663 浏览 0 评论 0原文

我正在尝试安装Eth-Brownie。遵循布朗尼文档并安装了pipx,然后ran pipx susepath 。我最初使用Python 3.10,但无法安装它,发现这很普遍,最好的解决方法是降级到3.9。

卸载3.10并安装3.9后,我再次运行了所有内容。当我运行 pipx安装eth-brownie 时,我会收到以下错误:

C:\Users\garri>pipx install eth-brownie
No Python at 'C:\Users\garri\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe'
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\garri\.local\pipx\logs\cmd_2022-03-28_13.40.53_pip_errors.log

Error installing eth-brownie.

我从路径中删除了python 3.10, python-version 按预期返回3.9.12。我觉得自己已经尝试了一切,我感到茫然。任何帮助将不胜感激。

I'm trying to install eth-brownie. Followed the Brownie documentation and installed pipx, then ran pipx ensurepath. I was originally using Python 3.10 but couldn't install it, found that this was pretty common and the best fix was to downgrade to 3.9.

After uninstalling 3.10 and installing 3.9, I ran everything again. When I run pipx install eth-brownie, I get the following error:

C:\Users\garri>pipx install eth-brownie
No Python at 'C:\Users\garri\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe'
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\garri\.local\pipx\logs\cmd_2022-03-28_13.40.53_pip_errors.log

Error installing eth-brownie.

I removed Python 3.10 from Path and python --version returns 3.9.12 as expected. I'm at a loss, as I feel like I've tried everything. Any help would be greatly appreciated.

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

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

发布评论

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

评论(3

静水深流 2025-01-24 10:15:48

这基本上是一个 pipx 缓存问题。您必须删除以下文件夹才能删除 pipx 相关的缓存文件。

C:\Users\<用户名>\.local\pipx

This is basically a pipx cache issue. You have to delete the following folder to remove pipx related cached files.

C:\Users\<username>\.local\pipx

放肆 2025-01-24 10:15:48

删除错误中显示的路径。

我的错误是:

PS C:\Users\thher> pipx install ghunt
No Python at '"C:\Users\thher\.pyenv\pyenv-win\versions\3.12.2\python.exe'
No Python at '"C:\Users\thher\.pyenv\pyenv-win\versions\3.12.2\python.exe'
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\thher\pipx\logs\cmd_2024-10-02_04.10.00_pip_errors.log

因此,我删除了文件夹c:\ users \ thher \ pipx,它正在工作。

我相信这是最新版本的PIPX的文件夹位置。

Delete the path showed in the error.

My error was :

PS C:\Users\thher> pipx install ghunt
No Python at '"C:\Users\thher\.pyenv\pyenv-win\versions\3.12.2\python.exe'
No Python at '"C:\Users\thher\.pyenv\pyenv-win\versions\3.12.2\python.exe'
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\thher\pipx\logs\cmd_2024-10-02_04.10.00_pip_errors.log

So I deleted the folder C:\Users\thher\pipx and it was working.

And I believe that's the folder location of the latest versions of pipx.

捂风挽笑 2025-01-24 10:15:48
  1. 删除 %LOCALAPPDATA%\pipx\ 文件夹以解决“No Python at ...”问题。
  2. 删除 ~\.local\bin\~\.local\share\ 以解决“文件现有...”问题。
  1. Remove %LOCALAPPDATA%\pipx\ folder to solve the "No Python at ..." problem.
  2. Remove ~\.local\bin\ and ~\.local\share\ to solve the "File existing ..." problem.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文