蓝色心灵-海 2023-08-03 10:32 采纳率: 0%
浏览 42

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>

  • 写回答

3条回答 默认 最新

  • 二九筒 2023-08-03 10:47
    关注

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

    评论

报告相同问题?

问题事件

  • 创建了问题 8月3日

悬赏问题

  • ¥15 Coze智能助手搭建过程中的问题请教
  • ¥15 12864只亮屏 不显示汉字
  • ¥20 三极管1000倍放大电路
  • ¥15 vscode报错如何解决
  • ¥15 前端vue CryptoJS Aes CBC加密后端java解密
  • ¥15 python随机森林对两个excel表格读取,shap报错
  • ¥15 基于STM32心率血氧监测(OLED显示)相关代码运行成功后烧录成功OLED显示屏不显示的原因是什么
  • ¥100 X轴为分离变量(因子变量),如何控制X轴每个分类变量的长度。
  • ¥30 求给定范围的全体素数p的(p-2)/p的连乘积值
  • ¥15 VFP如何使用阿里TTS实现文字转语音?