python安装pyart库时报这个错,无法安装,是什么原因啊

PS E:\zhaohailong-workspace\code\python-project\single_model_guizhou_2021.8\single_model_guizhou> python -m pip install pyart
WARNING: Ignoring invalid distribution -ip (d:\program files\python38\lib\site-packages)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyart
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bd/88/813ba6b870578e337b33b8954a4ec2ed87900934007ec2a7d2338935b316/pyart-0.2.3.tar.gz (47 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "D:\Program Files\Python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\Program Files\Python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "D:\Program Files\Python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\zhaohailong\AppData\Local\Temp\pip-build-env-hxnlicff\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\zhaohailong\AppData\Local\Temp\pip-build-env-hxnlicff\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "C:\Users\zhaohailong\AppData\Local\Temp\pip-build-env-hxnlicff\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\zhaohailong\AppData\Local\Temp\pip-build-env-hxnlicff\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 139, in <module>
        File "<string>", line 121, in prepare_sources
        File "<string>", line 121, in <listcomp>
        File "<string>", line 118, in to_string
      NameError: name 'unicode' is not defined
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
PS E:\zhaohailong-workspace\code\python-project\single_model_guizhou_2021.8\single_model_guizhou> myenv\Scripts\activate
myenv\Scripts\activate : 无法加载模块“myenv”。有关详细信息,请运行“Import-Module myenv”。
所在位置 行:1 字符: 1
+ myenv\Scripts\activate
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (myenv\Scripts\activate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoLoadModule
 
PS E:\zhaohailong-workspace\code\python-project\single_model_guizhou_2021.8\single_model_guizhou>

安装包与python版本不兼容导致的,找对应的版本安装

pyart模块不兼容Python,无法加载模块myenv,排除下这两个问题

【相关推荐】




如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^