Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Failed on Windows for Latest Version #3213

Closed
1 task done
RiwiHow opened this issue Oct 16, 2024 · 6 comments
Closed
1 task done

Installation Failed on Windows for Latest Version #3213

RiwiHow opened this issue Oct 16, 2024 · 6 comments
Labels
🐛 bug Something isn't working 🤔 waiting for feedback Requires more information to clarify the issue

Comments

@RiwiHow
Copy link

RiwiHow commented Oct 16, 2024

  • I have searched the issue tracker and believe that this is not a duplicate.

The version of Python installed on my computer is 3.13.0.

Steps to reproduce

  1. run (Invoke-WebRequest -Uri https://pdm-project.org/install-pdm.py -UseBasicParsing).Content | python -

Actual behavior

The following error was encountered:

Building wheels for collected packages: msgpack
  Building wheel for msgpack (pyproject.toml): started
  Building wheel for msgpack (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  Building wheel for msgpack (pyproject.toml) did not run successfully.
  exit code: 1

  [11 lines of output]
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\exceptions.py -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\ext.py -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\fallback.py -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\__init__.py -> build\lib.win-amd64-cpython-313\msgpack
  running build_ext
  building 'msgpack._cmsgpack' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for msgpack
Failed to build msgpack
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (msgpack)

I tried to follow the link https://visualstudio.microsoft.com/visual-cpp-build-tools/ to install Microsoft C++ Build Tools, but it still does not work.

Expected behavior

The command can install PDM correctly.

@RiwiHow RiwiHow added the 🐛 bug Something isn't working label Oct 16, 2024
@frostming
Copy link
Collaborator

frostming commented Oct 17, 2024

Can you install msgpack with pip on Python 3.13?

@frostming frostming added the 🤔 waiting for feedback Requires more information to clarify the issue label Oct 17, 2024
@RiwiHow
Copy link
Author

RiwiHow commented Oct 17, 2024

Thank you for your reply. There is no issue when installing with pip.

PS C:\Users\User> pip install msgpack
Collecting msgpack
  Using cached msgpack-1.1.0-cp313-cp313-win_amd64.whl.metadata (8.6 kB)
Downloading msgpack-1.1.0-cp313-cp313-win_amd64.whl (75 kB)
Installing collected packages: msgpack
Successfully installed msgpack-1.1.0

@frostming
Copy link
Collaborator

@RiwiHow can you also try if you can pip install msgpack==1.0.8 since that's the version the script installs

Anyway now you can run (Invoke-WebRequest -Uri https://pdm-project.org/install-pdm.py -UseBasicParsing).Content | python - --no-frozen-deps to work it around.

@RiwiHow
Copy link
Author

RiwiHow commented Oct 17, 2024

Thank you! I tried installing version 1.0.8 of msgpack, and it indeed results in an error:

Building wheels for collected packages: msgpack
  Building wheel for msgpack (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for msgpack (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\msgpack
      copying msgpack\exceptions.py -> build\lib.win-amd64-cpython-313\msgpack
      copying msgpack\ext.py -> build\lib.win-amd64-cpython-313\msgpack
      copying msgpack\fallback.py -> build\lib.win-amd64-cpython-313\msgpack
      copying msgpack\__init__.py -> build\lib.win-amd64-cpython-313\msgpack
      running build_ext
      building 'msgpack._cmsgpack' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for msgpack
Failed to build msgpack
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (msgpack)

Additionally, I noticed that the recommended installation method for Windows differs between the Chinese and English versions of the documentation. Was this intentional? Also, the Chinese version of the documentation does not include the uninstallation method.
Chinese:
(Invoke-WebRequest -Uri https://pdm-project.org/install-pdm.py -UseBasicParsing).Content | py -

image
English:
powershell -ExecutionPolicy ByPass -c "irm https://pdm-project.org/install-pdm.py | py -"

image

@frostming
Copy link
Collaborator

The Chinese version is maintained by community and may not be up-to-date.

@RiwiHow
Copy link
Author

RiwiHow commented Oct 17, 2024

Okay, thank you. 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🤔 waiting for feedback Requires more information to clarify the issue
Projects
None yet
Development

No branches or pull requests

2 participants