我尝试安装Cryptodome时遇到以下错误日志:

huangapple go评论101阅读模式
英文:

I'm get the following error log when I try to install cryptodome

问题

你遇到了一个问题,当尝试使用pip安装cryptodome时出现错误。这个错误似乎与编译器配置有关,特别是与ming编译器相关。

你尝试升级setuptools以解决问题,但仍然没有成功。

这个错误提示的主要部分是:

"distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')"

这似乎表明你的平台名称(--plat-name)不匹配支持的选项。

你可能需要检查你的编译器配置以确保与你的系统兼容,并确认是否存在与平台相关的问题。如果你不确定如何解决这个问题,可能需要查找相关资源或咨询社区支持来获得更多帮助。

英文:

I'm getting this error when i try to pip install cryptodome :

× python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\hp\AppData\Local\Temp\pip-install-n9q1xfuw\pycryptodome_520086b2afc74db3bef1d6098b1acac3\setup.py", line 474, in <module>
          set_compiler_options(package_root, ext_modules)
        File "C:\Users\hp\AppData\Local\Temp\pip-install-n9q1xfuw\pycryptodome_520086b2afc74db3bef1d6098b1acac3\compiler_opt.py", line 341, in set_compiler_options
          clang = compiler_is_clang()
        File "C:\Users\hp\AppData\Local\Temp\pip-install-n9q1xfuw\pycryptodome_520086b2afc74db3bef1d6098b1acac3\compiler_opt.py", line 251, in compiler_is_clang
          return test_compilation(source, msg="clang")
        File "C:\Users\hp\AppData\Local\Temp\pip-install-n9q1xfuw\pycryptodome_520086b2afc74db3bef1d6098b1acac3\compiler_opt.py", line 82, in test_compilation
          objects = compiler.compile([fname], extra_postargs=extra_cc_options)
        File "C:\msys64\mingw64\lib\python3.10\site-packages\setuptools\_distutils\_msvccompiler.py", line 343, in compile
          self.initialize()
        File "C:\msys64\mingw64\lib\python3.10\site-packages\setuptools\_distutils\_msvccompiler.py", line 246, in initialize
          raise DistutilsPlatformError(
      distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
      Testing support for clang
      [end of output]

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

Is this a problem with my ming compiler ?, Please help.

I tried upgrading my setuptools using

pip install --upgrade setuptools

still no luck.

答案1

得分: 0

这是您要求的翻译:

"It was a problem with the python installation, I clean reinstalled python and was able to install the library successfully."

英文:

It was a problem with the python installation, I clean reinstalled python and was able to install the library successfully.

huangapple
  • 本文由 发表于 2023年3月7日 18:06:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75660538.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定