-
Notifications
You must be signed in to change notification settings - Fork 11
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
pip install z80 fails #53
Comments
https://stackoverflow.com/questions/25595098/force-setup-py-to-use-my-custom-compiler reads like it's possible to specify the compiler with |
Hey
pip install distutils also fails. This currently prevents me from setting this up on my Macbook. Is there a known workaround? |
It looks like the use of distutils in setup.py is a workaround for a bug that was fixed in Python 3.6, according to the linked bug report. Python 3.8 sunsets in October this year, so it's possible to eliminate this usage entirely without breaking compatibility with most users. (Anyone still on 3.5 probably has bigger problems.) |
Right, we should switch to |
Hi,
This seems to work for me
Best
Morten
…________________________________
From: Ivan Kosarev ***@***.***>
Sent: Friday, July 26, 2024 9:08 PM
To: kosarev/z80
Cc: Morten Jagd Christensen; Mention
Subject: Re: [kosarev/z80] pip install z80 fails (Issue #53)
References to distutils are removed in 9a5d744<9a5d744>. @mortenjc<https://github.com/mortenjc> Morten, can you give it a try?
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABEHBDRY2UEEXMALDCB76FDZOKNCLAVCNFSM6AAAAABKQ7DNO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJTGMYTSMBTGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
still not working for me: × Running setup.py install for z80 did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. |
@fmuntean Did you try to |
This bit:
looks like a problem with the Python setup itself. Can you install any packages into that folder at all? Another thing to try is a user-local ( |
pip install wheel pip install --user z80 × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Does running |
install --upgrade setuptools wheel |
Looks like it doesn't have rights to write the destination folder. Did you try to run this as administrator? Can you install any other packages at all? |
I have no problem installing other packages. |
Running setup.py install for z80 did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running install
C:\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\z80
copying z80_disasm.py -> build\lib.win-amd64-cpython-311\z80
copying z80_disasm_parser.py -> build\lib.win-amd64-cpython-311\z80
copying z80_error.py -> build\lib.win-amd64-cpython-311\z80
copying z80_instr.py -> build\lib.win-amd64-cpython-311\z80
copying z80_machine.py -> build\lib.win-amd64-cpython-311\z80
copying z80_main.py -> build\lib.win-amd64-cpython-311\z80
copying z80_source.py -> build\lib.win-amd64-cpython-311\z80
copying z80_token.py -> build\lib.win-amd64-cpython-311\z80
copying z80_init_.py -> build\lib.win-amd64-cpython-311\z80
running build_ext
building 'z80._z80' 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]
this cpp built tools take over 1.3 GB to install. maybe use another compiler or use the VScode C++ compiler /
The text was updated successfully, but these errors were encountered: