-
Notifications
You must be signed in to change notification settings - Fork 102
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 failing for Python 3.9 on Windows #4
Comments
Hi @teresabehr, We think the issue comes from |
@minhvannguyen Closing this issue in that case, since it looks like the update would have to be made to |
I have trankit running on an old laptop with Anaconda (required me to downgrade hdf5, but it works), but I cannot get it working on my new laptop for the life of me. It's a brand-new system, so there are no old versions of anything interfering. I have tried both pip and installing from source, and neither works.
System Info:
Windows 10
Python 3.9.1
VisualStudio Build Tools C++ 2019
What I did:
Tried again in a new, empty virtualenv and got a slightly different error, also when building sentencepiece. (Also tried cloning the repo and installing from source...got an encoding error, but I suspect that's a Microsoft/different issue, so I'm not going to worry about that right now.)
Based on this issue, I think this is because trankit forces installation of a lower version of sentencepiece (my old laptop has v0.1.91), which doesn't work for Python 3.9. v0.1.95 of sentencepiece does, and I can install that separately, but when pip-installing trankit, it uninstalls v0.1.95 and tries to install the lower version that doesn't work.
Is there a workaround for this other than using a lower version of Python? (I guess that's not a major crisis, but it's easier not to have to switch back and forth between Python 3.7 and 3.9.) Or is there a way to update the setup files to reflect the newer version of sentencepiece?
ETA: I have this working successfully in a venv with Python 3.7, so this does appear to be an issue with 3.9 only.
The text was updated successfully, but these errors were encountered: