使用PIPX安装ETH-BROWNIE的错误:“ no Python at:<旧Python安装的位置;
我正在尝试安装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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这基本上是一个 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
删除错误中显示的路径。
我的错误是:
因此,我删除了文件夹
c:\ users \ thher \ pipx
,它正在工作。我相信这是最新版本的PIPX的文件夹位置。
Delete the path showed in the error.
My error was :
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.
%LOCALAPPDATA%\pipx\
文件夹以解决“No Python at ...”问题。~\.local\bin\
和~\.local\share\
以解决“文件现有...”问题。%LOCALAPPDATA%\pipx\
folder to solve the "No Python at ..." problem.~\.local\bin\
and~\.local\share\
to solve the "File existing ..." problem.