gpt4 book ai didi

python-3.6 - 如何使用诗歌解决这个 pycparser 安装错误?

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

我正在使用最新版本的诗歌 (1.1.10) 并且在尝试更新我的锁定文件时,在尝试安装 pycparser==2.20 时遇到了错误:

Writing lock file

Package operations: 65 installs, 0 updates, 0 removals

• Installing pycparser (2.20)

ValueError

File \C:\Users\user\AppData\Local\pypoetry\Cache\artifacts\3b\b4\2e\87ea123a592747e6f6c798c66837974694db0bca4783357f71718a538d\pycparser-2.20-py2.py3-none-any.whl does not exist

at c:\users\boris\miniconda3\envs\project\lib\site-packages\poetry\core\packages\file_dependency.py:40 in __init__
36│ except FileNotFoundError:
37│ raise ValueError("Directory {} does not exist".format(self._path))
38│
39│ if not self._full_path.exists():
→ 40│ raise ValueError("File {} does not exist".format(self._path))
41│
42│ if self._full_path.is_dir():
43│ raise ValueError("{} is a directory, expected a file".format(self._path))
我尝试更改我的诗歌版本以及 pycparser 的版本,但这似乎只会破坏其他软件包。以前有没有人处理过这个问题,如果有,你能指出我正确的方向吗?
眼镜:
操作系统:Windows 10
Python版本:3.6
诗==1.1.10
pycparser==2.20

最佳答案

我遇到了同样的问题,通过删除 Poetry 缓存文件夹解决了这个问题:C:\Users\user\AppData\Local\pypoetry

关于python-3.6 - 如何使用诗歌解决这个 pycparser 安装错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69311692/

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