如何纠正这个问题? 我在安装 Cryptocular 时遇到此错误。
错误:
PS C:\Users\gtaeh\Downloads\hindi-tamil-qna-master> pip install cryptacular
Collecting cryptacular
Using cached cryptacular-1.6.2.tar.gz (75 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pbkdf2
Using cached pbkdf2-1.3-py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\gtaeh\anaconda3\lib\site-packages (from cryptacular) (63.4.1)
Building wheels for collected packages: cryptacular
Building wheel for cryptacular (pyproject.toml) ... done
WARNING: Building wheel for cryptacular failed: [Errno 2] No such file or directory: 'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\pip-wheel-9782ix7m\\cryptacular-1.6.2-cp39-cp39-win_amd64.whl'
Failed to build cryptacular
ERROR: Could not build wheels for cryptacular, which is required to install pyproject.toml-based projects
挖掘一个老问题,但我刚刚遇到了这个问题,所以其他人也可能会看到这个(不一定只是为了
cryptacular
)。
从我的角度来看,主要问题是返回的错误消息中缺少信息。可以通过使用
pip install
/-v
标志运行 --verbose
来提供更多信息,这对我来说产生了解决我的特定问题所需的信息:
app@20326ce24707:~$ ./venv/bin/pip install --verbose cryptacular
Using pip 23.0.1 from /opt/app/venv/lib/python3.9/site-packages/pip (python 3.9)
Collecting cryptacular
Downloading cryptacular-1.6.2.tar.gz (75 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.8/75.8 kB 3.8 MB/s eta 0:00:00
Running command pip subprocess to install build dependencies
Collecting pytoml>=0.1
<snip>
sh: 1: gcc: not found
scons: *** [crypt_blowfish-1.3/crypt_blowfish.os] Error 127
scons: building terminated because of errors.
Building wheel for cryptacular (pyproject.toml) ... done
所以在我的情况下,我需要安装
gcc
,但在你的情况下,它可能会有所不同,因为一般错误:“错误:无法为 构建轮子,这是安装基于 pyproject.toml 的项目所必需的”可以因多种原因而被提出。
如果你有 anaconda,你必须通过以下方式安装它:
conda install cryptacular
谢谢你。