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

pip install crypten failed for sklearn #466

Open
maminiris opened this issue May 2, 2023 · 6 comments
Open

pip install crypten failed for sklearn #466

maminiris opened this issue May 2, 2023 · 6 comments

Comments

@maminiris
Copy link

Collecting sklearn
Using cached sklearn-0.0.post4.tar.gz (3.6 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
rather than 'sklearn' for pip commands.

@gillesoldano
Copy link

I'll do a pull request as soon as I'm able to run the test suite #454, as a quick fix just replace sklearn with scikit-learn

@zwxandy
Copy link

zwxandy commented Jun 4, 2023

I also meet this problem when I am running the command "pip install crypten".

@lvdmaaten
Copy link
Member

See #468 for a fix. I am currently blocked from merging PRs but will try to merge this change shortly.

@ReemAlsharabi
Copy link

ReemAlsharabi commented Aug 12, 2023

try SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True
Then install scikit-learn, restart runtime, and install crypten


Another way is:
!pip install torch>=1.7.0 torchvision>=0.9.1 omegaconf>=2.0.6 onnx>=1.7.0 pandas>=1.2.2 pyyaml>=5.3.1 tensorboard future scipy>=1.6.0

!pip install --no-deps crypten
This will ignore sklearn

@ahmad-thewhiz
Copy link

thanks @ReemAlsharabi

@annh3
Copy link

annh3 commented Apr 24, 2024

thank you!!

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

7 participants