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

fix the outdated installation instructions #3021

Merged
merged 1 commit into from
May 17, 2024

Conversation

crnkv
Copy link
Contributor

@crnkv crnkv commented May 9, 2024

The README.md installation instructions failed for two reasons:

  1. python 3.12 has removed the imp module and has replaced it by the importlib module. 1
  2. the use of setup.py as in the command python setup.py install is deprecated and should be replaced by the recommended way of python -m pip install path/to/project. 2

BTW, the reason why I changed python3 to python is because (1) this should be the mainstream nowadays, and (2) I don't know since when win10 has one python3.exe under %APPDATA%\Local\Microsoft\WindowsApps\ which is non-functional. (At the same time the python 3.12 official release no longer comes with a python3.exe.) (Thus calling python3 will have no effect.)

1. python 3.12 has removed the `imp` module and has replaced it by the `importlib` module. [1](https://docs.python.org/3/whatsnew/3.12.html#imp)
2. the use of setup.py as in the command `python setup.py install` is deprecated and should be replaced by the recommended way of `python -m pip install path/to/project`. [2](https://packaging.python.org/en/latest/discussions/setup-py-deprecated/)
@soimort soimort merged commit 1c1f982 into soimort:develop May 17, 2024
0 of 7 checks passed
@soimort
Copy link
Owner

soimort commented May 17, 2024

Nice. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants