ahmedfgad / GeneticAlgorithmPython

Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
https://pygad.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.9k stars 466 forks source link

conda installation of pygad #105

Open iamtekson opened 2 years ago

iamtekson commented 2 years ago

This package is very useful and I think it should be available on the conda distribution as well. Please let me know if you need any help with this issue. I really want to see this package on conda distribution as well.

dboneshc commented 2 years ago

You could build it yourself, here is the process I followed: OS - Windows 64 Conda Version: 4.13.0 Location of Anaconda install: C:\ProgramData\Anaconda3

  1. Conda version 4.13.0 has an issue with pypi.py conda/conda-build#4434 - to work around I downloaded the commit associated with 4434 and replaced the file located here: C:\ProgramData\Anaconda3\Lib\site-packages\conda_build\skeletons
  2. Then run the following Conda commands: conda skeleton pypi --python-version 3.8
  3. conda build pygad --no-test no test because of #117
  4. conda install --use-local pygad