-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
pyod fails to install using pip #6
Comments
Also have the same issue when installing from source |
Should also note that I'm attempting to install into an Anaconda environment running Python 3.6.5 |
Thanks for the feedback. I included the test files in the package which triggers "nose", even it is only listed as optional. I will submit a fix (possibly tonight) to remove test files in the package. Will comment again once that is ready. Yue |
Sounds good! |
Sorry I just noticed that another problem is pyod depends on sklearn...which uses nose for validation, see error message below.
|
Tried installing nose then installing Pyod. I get an issue here that comes from matplotlib. It's an Anaconda (or venv I assume) specific error because matplotlib wants python installed as a framework. It seems like at the moment Pyod won't work in an Anaconda env. Possibly something for a future version as I would assume a lot of people working with data science/ statistics would use Anaconda. here is the backtrace for reference:
|
The issue you saw is specific to the virtual env Qt problem on mac, which is caused by matplotlib, and it is a lingering issue. The problem can be reproduced by:
Using workaround 1, I managed to install pyod in mac virtual env and also succeeded in running examples. See the screenshot below: To facilitate the installation, I also removed the use of matplotlib in the code (I do not remove it from dependency since example codes still need it) and publish a new version 0.5.2. You may want to give it a shot... Let me know if the problem persists. |
I think that similar solution to this can solve the first issue - sciunto-org/python-bibtexparser#111 (I can create a PR with this solution if you would like) |
@tomron Thanks Tom. I did check the post and it is an interesting bug :) So I fixed this bug by listing nose as one of the requirements in requirements.txt. Not sure if this is exactly the same bug you mentioned. |
This issue is actually a mixture of several issues which should probably be separated to several issues. As a user of your package I don't want to pre install myself any dependency I want the setup file to do that. |
#12 should fix the setup.py dependency issue. # |
I received an error when i exported the pyod.models.hbos however i have successfully installed pyod in ananconda environment ,the error shows like 'No module named 'pyod.models'; 'pyod' is not a package' |
@Hasakii-ghj I have the same problems. Did you solve this problem? Would you mind giving me some suggestions about this? Thank you so much. |
@Lotus-Lian maybe try conda install? https://anaconda.org/conda-forge/pyod |
@yzhao062 Thank you for your suggestion. But I used conda install. But it doesn't work. |
@LLh-lihan, @Lotus-Lian: What is the name of your python file? If it is 'pyod.py', rename it. In this case you are importing your own script. |
Make sure that python file name is not |
add test script for sampling method.
When attempting to install without nose, I receive the following error:
The text was updated successfully, but these errors were encountered: