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即可。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐