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

Can't install on Windows 10 + Anaconda - Running = Errors ?? #21

Open
AlonDan opened this issue Sep 8, 2022 · 8 comments
Open

Can't install on Windows 10 + Anaconda - Running = Errors ?? #21

AlonDan opened this issue Sep 8, 2022 · 8 comments

Comments

@AlonDan
Copy link

AlonDan commented Sep 8, 2022

I've created an environment called: "rembg-greenscreen" with python 3.9 and activated it
I tried to install using: pip install rembg-greenscreen

But I got some errors I'm not sure how to fix as I'm not a programmer,

cmd_2022-09-08_23-21-30

Can someone please explain how to install it correct without errors?

Thanks ahead!

@AlonDan
Copy link
Author

AlonDan commented Sep 8, 2022

Problem solved by manually install numpy:
pip install numpy==1.19.4

Then, install again should complete without any errors:
pip install rembg-greenscreen

I hope this will help others in case you ran in to this issue. 👍

@AlonDan AlonDan changed the title Can't install on Windows 10 + Anaconda Can't install on Windows 10 + Anaconda - [SOLVED] Sep 8, 2022
@AlonDan
Copy link
Author

AlonDan commented Sep 8, 2022

I keep on update in case anyone can help, or if I'll find a solution.

I've tried to run my first test, it seems like it's "almost" working... but I get errors and it's stuck.
I can get back to Anaconda using Ctrl+C

cmd_2022-09-08_23-57-53

I'm not sure what to do now or how to fix it... any help will be appreciated.
Thanks ahead!

@AlonDan AlonDan changed the title Can't install on Windows 10 + Anaconda - [SOLVED] Can't install on Windows 10 + Anaconda - Running = Errors ?? Sep 8, 2022
@hic9507
Copy link

hic9507 commented Sep 25, 2022

Did you solve this problem?
I have an same error.
If you solve it, I need your help.
Thanks

@AlonDan
Copy link
Author

AlonDan commented Sep 25, 2022

Did you solve this problem? I have an same error. If you solve it, I need your help. Thanks

Unfortunately I couldn't solve it,
I even tried to reinstall from scratch but got the same errors.

@hic9507
Copy link

hic9507 commented Sep 25, 2022

I saw other issue on 'rembg'.
[(https://github.com/danielgatis/rembg/issues?q=pickle)]

I tried download 'u2net_human_seg.pth', and move it right place.

But, this file( u2net_human_seg.pth) keeps downloading, and after only 3kb is downloaded, the same error is shown.

So I'm trying to find out if there is a part that makes the model download unconditionally, and I'm curious if it can be solved after seeing this.
(rembg-screen/src/rembg/u2net/bg.py)
(rembg-screen/src/rembg/u2net/multiprocessing.py)

I am a newb, so I think you are better than me for solve this problem.

Anyway, I will refer to the link, so please read the problem carefully.
They had a similar problem.
And if any of us find a solution first, please comment here.

image

@hic9507
Copy link

hic9507 commented Sep 26, 2022

Did you solve this problem? I have an same error. If you solve it, I need your help. Thanks

Unfortunately I couldn't solve it, I even tried to reinstall from scratch but got the same errors.

Did you solve this problem?

@AlonDan
Copy link
Author

AlonDan commented Sep 26, 2022

And if any of us find a solution first, please comment here.

I also had this problem, where it download to my C drive under the user and some directory path (I can't remember) and when trying to run it OVERWRITE the u2net_human_seg.pth (172MB size) with another one and stuck... probably the 3KB like you show.

I tried to copy it MANUALLY but it will overwrite the moment I try to run via anaconda again.

Can you please update you link? it leads to the main issues page
I would like to follow your suggestion and read it maybe I'll give it a try.
I'm a newbie in this and not a programmer so if it's complex I'll probably won't be able to do much.

Like you suggested @hic9507 if any of us find a solution, let's share it here ❤

@suffa07
Copy link

suffa07 commented Feb 24, 2023

I experience a similar problem when attempting to install "rembg-greenscreen", repeatedly received an error: "could not build numpy wheel...". I tried a number of things, but ultimately what seemed to work was running the following commands (in this order) from the cmd line (OSX 13.2.1):

  1. sudo pip install --upgrade --no-deps --force-reinstall numpy
  2. sudo pip install --upgrade --no-deps --force-reinstall rembg-greenscreen

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

3 participants