ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

pip安装aircv==1.4.6失败解决方法

2022-05-07 01:02:09  阅读:317  来源: 互联网

标签:1.4 appium code aircv py aqua venv pip crm


报错信息:

(venv) D:\aqua\code\crm_appium>pip install -r requirements.txt
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting aircv==1.4.6
  Downloading http://mirrors.aliyun.com/pypi/packages/bd/70/fdf23058fb0728f5d241287562e088b1b4d5d9e68c6689b1afbbc53ec10b/aircv-1.4.6.tar.gz (4.0 MB)
     ---------------------------------------- 4.0/4.0 MB 1.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
 
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [43 lines of output]
      d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\dist.py:757: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use th
e underscore name 'author_email' instead
        warnings.warn(
      d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\dist.py:757: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the u
nderscore name 'home_page' instead
        warnings.warn(
      d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\dist.py:757: UserWarning: Usage of dash-separated 'requires-python' will not be supported in future versions. Please use
 the underscore name 'requires_python' instead
        warnings.warn(
      d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a
 PEP 517 installer.
        warnings.warn(
      WARNING: The wheel package is not available.
      WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS i
nstead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
      ERROR: Could not find a version that satisfies the requirement pbr (from versions: none)
      ERROR: No matching distribution found for pbr
      Traceback (most recent call last):
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\installer.py", line 82, in fetch_build_egg
          subprocess.check_call(cmd)
        File "D:\Python\Python39\lib\subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['d:\\aqua\\code\\crm_appium\\venv\\scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Use
rs\\aka\\AppData\\Local\\Temp\\tmpsvut7h3v', '--quiet', 'pbr']' returned non-zero exit status 1.
      
      The above exception was the direct cause of the following exception:
      
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\aka\AppData\Local\Temp\pip-install-fxp7pied\aircv_9bc087d232174ecb84f25427376bb51a\setup.py", line 5, in <module>
          setup(
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\__init__.py", line 86, in setup
          _install_setup_requires(attrs)
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\__init__.py", line 80, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\dist.py", line 861, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\pkg_resources\__init__.py", line 789, in resolve
          dist = best[req.key] = env.best_match(
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\pkg_resources\__init__.py", line 1075, in best_match
          return self.obtain(req, installer)
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\pkg_resources\__init__.py", line 1087, in obtain
          return installer(requirement)
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\dist.py", line 941, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "d:\aqua\code\crm_appium\venv\lib\site-packages\setuptools\installer.py", line 84, in fetch_build_egg
          raise DistutilsError(str(e)) from e
      distutils.errors.DistutilsError: Command '['d:\\aqua\\code\\crm_appium\\venv\\scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\U
sers\\aka\\AppData\\Local\\Temp\\tmpsvut7h3v', '--quiet', 'pbr']' returned non-zero exit status 1.
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
 
× Encountered error while generating package metadata.
╰─> See above for output.
 
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

  

解决方案:

pip install pbr

  

标签:1.4,appium,code,aircv,py,aqua,venv,pip,crm
来源: https://www.cnblogs.com/testgo/p/16240849.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有