当前位置:   article > 正文

paddlenlp安装报错-error: subprocess-exited-with-error × python setup.py egg_info did not run ....._warning: the repository located at pypi.mirrors.us

warning: the repository located at pypi.mirrors.ustc.edu.cn is not a trusted

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.
      !!

 如图所示,安装环境为:

windows10

python=3.7

paddlepaddle=2.4.0

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

pip install paddlenlp --use-pep517

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/396827?site
推荐阅读
相关标签
  

闽ICP备14008679号