pip安装aircv==1.4.6失败解决方法
报错信息:
(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