-
Notifications
You must be signed in to change notification settings - Fork 45
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
Not able to install due to libsvm #5
Comments
To install it with latest pip>=19 first install libsvm separately with |
does this work in python 2.7 or python 3.7 coz in my workings it is not solving any problem |
Seems to me that your error is because you don't use See cjlin1/libsvm#145 for a solution that would fix this problem |
First, I'm baffled why people are using --no-deps. I did not need --no-deps. The problem is with a package reference to libsvm in brisque.py. If you want to pip install a clone this repo into your own then you may also want to make a small mod to setup.py. Details below... Note - since Python 2 is no longer supported I only focus on Python 3. My steps here were done using Python 3.7.4. On a MacFirst the import of libsvm in brisque.py is missing the libsvm package name. This would never work unless you did some weird stuff to your python environment and is why this error pops up. In brisque.py at the chop change
to
Second, The following works for me on a Mac. I always use virtual environments to keep things tidy and avoid needing to sudo any installs. The virtual environment setup and activation are the first two lines after the cd.
Given this very obvious package problem I don't know if I should trust that the unit test failures are safe to ignore or not. BUT I can tell you that this library seems to work ok in my own project. I didn't bother to see if I'm using the functionality associated with the failures though. If I get permissions to this repo I'll gladly post my modifications on a branch for others. If you make these mods yourself on a clone of the repo you can locally install the pybrisque package using
What about Linux?I played with this on the Ubuntu sub-system on Windows 10 a bit. I found the same modifications to brisque.py and setup.py were required. I also had to manually install librender1.
Then you should be able to install pybrisque on Linux identical to the Mac steps. Note I didn't test the unit test on Linux. Hope that helps others. |
Hi,
Thanks for the synthetic work.
I cannot install your library because of libsvm : whether I install it (with brew) or don't install it, I get this error :
Could not find a version that satisfies the requirement libsvm (from pybrisque) (from versions: )
If you want further details on the error (-vvv):
`Collecting libsvm (from pybrisque)
1 location(s) to search for versions of libsvm:
Getting page https://pypi.org/simple/libsvm/
Looking up "https://pypi.org/simple/libsvm/" in the cache
Request header has "max_age" as 0, cache bypassed
https://pypi.org:443 "GET /simple/libsvm/ HTTP/1.1" 404 13
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://pypi.org/simple/libsvm/: 404 Client Error: Not Found for url: https://pypi.org/simple/libsvm/ - skipping
Could not find a version that satisfies the requirement libsvm (from pybrisque) (from versions: )
Cleaning up...
Removed build tracker '/private/tmp/pip-req-tracker-E1ybWI'
No matching distribution found for libsvm (from pybrisque)`
Do you know how I can go about it ?
Thanks in advance,
Francois
The text was updated successfully, but these errors were encountered: