paddlenlp安装报错-error: subprocess-exited-with-error × python setup.py egg_info did not run .....

WARNING: The repository located at pypi.mirrors.ustc.edu.cn is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.mirrors.ustc.edu.cn'.
      ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
      ERROR: No matching distribution found for setuptools_scm
      E:\guidongxu\Anaconda3\envs\paddle_nlp\lib\site-packages\setuptools\__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

paddlenlp安装报错-error: subprocess-exited-with-error × python setup.py egg_info did not run ....._第1张图片

 如图所示,安装环境为:

windows10

python=3.7

paddlepaddle=2.4.0

某次安装就会莫名其妙出现这种问题,推测是由于安装包的版本等不兼容导致的,给出的提示是由于安装包出现问题,并不是pip的问题。根据提示,解决方法为:

pip install paddlenlp --use-pep517

在pip安装后加入--use-pep517即可。

你可能感兴趣的:(一些奇奇怪怪的报错,python,paddle,paddlepaddle,nlp)