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

ktrain not installing - PEP 517 Error #114

Closed
samwalkow opened this issue Apr 7, 2020 · 3 comments
Closed

ktrain not installing - PEP 517 Error #114

samwalkow opened this issue Apr 7, 2020 · 3 comments

Comments

@samwalkow
Copy link

Hi,

I'm trying to install ktrain to my base environment and I get this error:

Screen Shot 2020-04-07 at 10 52 42 AM

I'm on a mac mojave OS, python version 3.7.3, and pip3 version 20.0.2. I tried installing it in my terminal and in a jupyter notebook with no luck. I appreciate any help!

@amaiya
Copy link
Owner

amaiya commented Apr 7, 2020

Hi there:

Everything works on Linux (and Windows according to users), so it may be a Mac issue. Moreover, it appears to be an issue with the transformers library. See this issue on the transformers GitHub repo, which describes the issue and various proposed solutions.

This post, in particular, describes a solution for Mac users that appears to work based on the number of people who "liked" the post. The post says:

Hi, I had the same problem and resolved it by installing rust.
"error: Can not find Rust compiler"

For MacOS, I used "curl https://sh.rustup.rs -sSf | sh". I also found that it needed a nightly version of rust, so you have to specify that in the install options.

Can you give this a shot to see if it solves the problem?

@amaiya
Copy link
Owner

amaiya commented Apr 7, 2020

This solution or this solution may also work based on comments in the thread.

@samwalkow
Copy link
Author

huggingface/transformers#2831 (comment) - this solution worked for me!

I did have some more errors regarding the 'wrapt' library, but I was able upgrade and solve that issue. I still see some tensorflow related errors, but I can still import the ktrain into my jupyter notebook and it seems to be working.

Thanks so much for your help!

@amaiya amaiya closed this as completed Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants