简体   繁体   English

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

[英]How can I get around this pycparser installation error using poetry?

I'm using the latest version of poetry (1.1.10) and while trying to update my lock file, I ran into an error while attempting to install pycparser==2.20:我正在使用最新版本的诗歌(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))

I tried changing my poetry version as well as that of pycparser, but that only seems to break other packages.我尝试更改我的诗歌版本以及 pycparser 的版本,但这似乎只会破坏其他软件包。 Has anyone dealt with this before, and if so can you point me in the right direction?以前有没有人处理过这个问题,如果有,你能指出我正确的方向吗?

Specs: OS: Windows 10 Python version: 3.6 poetry==1.1.10 pycparser==2.20规格:操作系统:Windows 10 Python 版本:3.6 诗歌==1.1.10 pycparser==2.20

我有同样的问题,通过删除诗歌缓存文件夹解决了: C:\Users\user\AppData\Local\pypoetry

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何设置我的导入以运行我的 python 应用程序而不安装它,并且仍然能够使用诗歌运行 tox? - How can I set up my imports in order to run my python application without installing it, and still be able to run tox using poetry? 我在osx上的pip3安装非常混乱,我该如何解决? - my pip3 installation on osx is very confused, how can i fix it? 如何解决这些相对导入错误 - How can I fix these relative import error 如何使用Python 3使用if语句在计算器中进行减法和除法运算? - How can I get subtraction and division in my calculator using Python 3 to work using an if statement? 如何使我的端口扫描器正常工作 - How can I get my port scanner to work 如何从 pyqtgraph 中的散点图中获取各个点及其属性? - How can I get the individual points and their attributes from a scatterplot in pyqtgraph? ujson Package Python 安装错误 - ujson Package Installation Error in Python 如何在循环中使用asyncio构造安排多个任务 - How can I schedule multiple tasks using asyncio constructs in a loop 如何在不使用 zip 的情况下迭代两个列表? - How can I iterate over two lists without using zip? 执行多对一关系后,如何获得完整的字典? - How can I get a full dict when I have performed a Many-to-one relationships?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM