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

deap for python 3.10 #610

Open
Edanflame opened this issue Dec 20, 2021 · 10 comments
Open

deap for python 3.10 #610

Edanflame opened this issue Dec 20, 2021 · 10 comments

Comments

@Edanflame
Copy link

I am going to upgrade my python from 3.7 to 3.10 in windows and when I try to install deap 1.3.1, it reports error and does not work. Is the deap for python 3.10 on the schedule? thx.

@fmder
Copy link
Member

fmder commented Dec 20, 2021

You are right, it seems that the only cp10 wheel has been built for manylinux. I’ll look into it.

@fmder
Copy link
Member

fmder commented Jan 17, 2022

Ho, I think I tries a couple of months ago, lib_2to3 has been removed from 3.10 ...

@Edanflame
Copy link
Author

Thank you for your efforts. It helps me a lot.
I try to setup with deep-master, and error with 'use_2to3 is invalid', so I delete the use_2to3 in setup.py and it works. I make a pr #620 , and I don't know if it is right.

@tvdboom
Copy link

tvdboom commented Feb 3, 2022

any update when a new version will be released that support 3.10?

@Edanflame
Copy link
Author

#620 only solves the error during setup, but cannot solve the error during running. So I close it.

@andreikitaitsev
Copy link

andreikitaitsev commented Mar 10, 2022

For me the installation worked fine, but a similar error with 'use_2to3 is invalid' and syntax errors in raise statements occured when running the scripts. Downgrading the python interpreter version (<3.10) solved the problem.

@Edanflame
Copy link
Author

To install deap 1.3.1 in python 3.10, you can degrade the setuptools to 57.0.0 and install with source code

@mikhailsmilovic
Copy link

To install deap 1.3.1 in python 3.10, you can degrade the setuptools to 57.0.0 and install with source code

Worked perfectly 💙

  1. pip install setuptools==57.0.0
  2. ✔️ Downloaded deap-1.3.1.tar.gz from https://pypi.org/project/deap/#files
  3. pip install deap-1.3.1.tar.gz
  4. (optional) pip install setuptools==61.2.0

@meghkc
Copy link

meghkc commented Jun 5, 2022

for python 3.10.4
downgrade setuptools to 58.0.0 and use code pip install deap
it will install deap 1.3.1 perfectly
but
while importing base (it says invalid syntax error), importing tools,creator works fine
are you facing the same please share.

@aabmets
Copy link

aabmets commented Jun 9, 2022

@Edanflame @fmder @tvdboom @andreikitaitsev @mikhailsmilovic @meghkc

I've created a Python 3.10 port of the DEAP library called DEAP-er.
It's currently in beta, but you could check it out and provide feedback about any bugs.

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