-
Notifications
You must be signed in to change notification settings - Fork 50
Install revscoring on OS X #310
Comments
I've no way to test Mac OS. If your strategy works, then I'm a fan of making that the recommended installation strategy in the README. Also, the |
I don't think it is now. The following is what I did and it looks like it works. # Create a new virtual environment for revscoring.
$ mkvirtualenv wikiai_revscoring
# Install revscoring.
$ pip install pyenchant revscoring |
do you have to include |
Ah, hey, just saw this. Installing scipy and scikit-learn on MacOS has always been tough. The right installation method depends on a few different factors:
In my opinion, the ideal setup would be to just use wheels. That way, the user doesn't need to install and set up gfortran and gcc, which can be pretty involved. The trick with wheels is finding out which ones are available for which versions of Python. Looking at the release for scipy 1.2.3, they offer MacOS wheels for Python 3.4, 3.5, 3.6, and 3.7. Similarly, the release for scikit-learn 0.22.1 has wheels for Python 3.5, 3.6, 3.7, and 3.8. So, with the current versions of scipy and scikit-learn, maybe we should recommend that MacOS users use Python 3.5, 3.6, or 3.7? I was able to get all the dependencies installed with Python 3.7 so I can at least verify that that works. The alternative would be to actually build these libraries from source. For example, scipy has a GitHub Actions build for MacOS, so you should be able to build Scipy by basically copying what their build does. However, it's pretty complex (about 50 lines of shell script) and it might cause other problems because it relies on an older version of GCC and it requires modifying some global settings. So I wouldn't recommend doing this unless there's a strong-ish reason to. |
Hi there, not sure if this is the right place, but I just noticed that the
Should we create a new issue for updating the documentation or does someone want to reproduce the issue? |
I'd welcome an update to the documentation. The OSX install is rarely used, but I'd be very happy to have it improved. |
I have a few questions.
Can someone explain me which version is installed when, as per documentation, I install
From
From Did someone manage to install the latest version of |
pip should have pulled in 2.11. There should be no architectural limitation on where you can install revscoring. https://pypi.org/project/revscoring/ I don't know why you would end up with such an old version. |
Hi everyone Configuration
PrerequesiteI was not able to install the As @paulkernfeld mentioned above, some of the dependencies only have wheels for python 3.7 max so I used Installation instructionAspellThe instruction for the
worked fine for me. EnchantPlease refer to this issue for the Python packages
didn't work for me. This command raised a few errors and install the version 0.2.1 of
installed Can someone try to reproduce the installation step on a Mac? @halfak , should we update the documentation? |
What a fantastic writeup! Thank you for your work! I'd welcome an update to the documentation. Any documentation of your process would be an improvement to what we have right now -- which apparently was not working for folks. |
@paulkernfeld , @bkowshik , could you try to reproduce the installation on MacOS with my change from #511 ? |
1. Per documentation on README
2. This looks like a known issue!
Per comment here, installing
numpy
first and then installingrevscoring
is the solution.3. Should scipy be installated seperately as well?
4. What if I remove
--no-binary
?Questions
revscoring
?cc: @halfak @geohacker
The text was updated successfully, but these errors were encountered: