Closed ShuC-Pola closed 3 months ago
Unfortunately Python 2.7 has been out of support for many years now, so there won't be any fix on the github repo. However, you could clone the repository fix the file and install from source. From the root directory, just type "pip install ."
Le jeu. 13 juin 2024, 14 h 38, ShuC-Pola @.***> a écrit :
Hi! I'm using Python 2.7, and when I import creator from the deap package, I constantly encounter the error "No module named copyreg." I suspect that in Python 2.7, the module is named copy_reg instead of copyreg, but I'm not sure how to rename this file so that I can import it. Any help would be appreciated! Thanks in advance!
— Reply to this email directly, view it on GitHub https://github.com/DEAP/deap/issues/747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHKXQRTSQPJHKSC75R24JTZHHRJBAVCNFSM6AAAAABJI6IY6CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TCOBRHE4DENA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi! I'm using Python 2.7, and when I import creator from the deap package, I constantly encounter the error "No module named copyreg." I suspect that in Python 2.7, the module is named copy_reg instead of copyreg, but I'm not sure how to rename this file so that I can import it. Any help would be appreciated! Thanks in advance!