安装scipy库出问题怎么办,是numpy库版本的问题吗?

armor2 2022-10-07 11:33:22

C:\Windows\system32>pip install scipy

Collecting scipy

  Using cached scipy-1.9.1.tar.gz (42.0 MB)

  Installing build dependencies ... error

  error: subprocess-exited-with-error

 

  × pip subprocess to install build dependencies did not run successfully.

  │ exit code: 1

  ╰─> [34 lines of output]

      Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64" and platform_python_implementation != "PyPy"' don't match your environment

      Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment

      Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment

      Ignoring numpy: markers 'platform_machine == "loongarch64"' don't match your environment

      Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment

      Ignoring numpy: markers 'python_version == "3.9" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment

      Ignoring numpy: markers 'python_version == "3.11" and platform_python_implementation != "PyPy"' don't match your environment

      Ignoring numpy: markers 'python_version >= "3.12"' don't match your environment

      Ignoring numpy: markers 'python_version >= "3.8" and platform_python_implementation == "PyPy"' don't match your environment

      Collecting meson-python>=0.8.1

        Using cached meson_python-0.10.0-py3-none-any.whl (18 kB)

      Collecting meson==0.62.2

        Using cached meson-0.62.2-py3-none-any.whl (864 kB)

      Collecting Cython<3.0,>=0.29.21

        Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)

      Collecting pybind11<2.11.0,>=2.4.3

        Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)

      Collecting pythran<0.12.0,>=0.9.12

        Using cached pythran-0.11.0-py3-none-any.whl (4.2 MB)

      Collecting wheel<0.38.0

        Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)

      Collecting numpy==1.22.3

        Using cached numpy-1.22.3-cp310-cp310-win32.whl (12.2 MB)

      ERROR: Cannot install numpy==1.21.6 and numpy==1.22.3 because these package versions have conflicting dependencies.

 

      The conflict is caused by:

          The user requested numpy==1.22.3

          The user requested numpy==1.21.6

 

      To fix this you could try to:

      1. loosen the range of package versions you've specified

      2. remove package versions to allow pip attempt to solve the dependency conflict

 

      ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

      [end of output]

 

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

error: subprocess-exited-with-error

 

× pip subprocess to install build dependencies 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.

...全文
2865 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
我想吃红烧肉 2022-10-11
  • 打赏
  • 举报
回复

试试在解释器里添加呢

风错雨 2022-10-10
  • 打赏
  • 举报
回复

尝试重新安装importlib_metadata
pip uninstall importlib_metadata
pip install importlib_metadata --force-reinstall

163

社区成员

发帖
与我相关
我的任务
社区描述
软件工程老师
python 高校 江苏省·南通市
社区管理员
  • juking@ntu
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧