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

You recommend pip3 for linux and mac, but pip for windows. Why? #32

Closed
StoneCypher opened this issue Mar 13, 2021 · 3 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@StoneCypher
Copy link

If it's pip3 anywhere, it's pip3 everywhere. Windows gets pip3 from python3 just like everybody else

@ahmedfgad ahmedfgad self-assigned this Mar 14, 2021
@ahmedfgad ahmedfgad added the question Further information is requested label Mar 14, 2021
@ahmedfgad
Copy link
Owner

Thank you! I usually use pip for Python3 in Windows which makes no issue. For Linux/Mac, pip never works for Python3.
I will update the documentation to reflect upon that soon.

@rengel8
Copy link
Contributor

rengel8 commented May 18, 2021

For me it does not make any difference on Windows to use pip -V oder pip3 -V is resolved by the same version. Linux still has python 2.x under the hood, as far as I know, why it does make sense to be sure in choosing the right instance of a package manager. Whilst working with env this might again be not that important, since the env's version is used.

ahmedfgad added a commit that referenced this issue May 19, 2021
Changes in PyGAD 2.14.0
1.	Issue #40 is solved. Now, the None value works with the crossover_type and mutation_type parameters: #40
2.	The gene_type parameter supports accepting a list/tuple/numpy.ndarray of numeric data types for the genes. This helps to control the data type of each individual gene. Previously, the gene_type can be assigned only to a single data type that is applied for all genes.
3.	A new bool attribute named gene_type_single is added to the pygad.GA class. It is True when there is a single data type assigned to the gene_type parameter. When the gene_type parameter is assigned a list/tuple/numpy.ndarray, then gene_type_single is set to False.
4.	The mutation_by_replacement flag now has no effect if gene_space exists except for the genes with None values. For example, for gene_space=[None, [5, 6]] the mutation_by_replacement flag affects only the first gene which has None for its value space.
5.	When an element has a value of None in the gene_space parameter (e.g. gene_space=[None, [5, 6]]), then its value will be randomly generated for each solution rather than being generate once for all solutions. Previously, the gene with None value in gene_space is the same across all solutions
6.	Some changes in the documentation according to issue #32: #32
ahmedfgad added a commit that referenced this issue May 19, 2021
1.	Issue #40 is solved. Now, the None value works with the crossover_type and mutation_type parameters: #40
2.	The gene_type parameter supports accepting a list/tuple/numpy.ndarray of numeric data types for the genes. This helps to control the data type of each individual gene. Previously, the gene_type can be assigned only to a single data type that is applied for all genes.
3.	A new bool attribute named gene_type_single is added to the pygad.GA class. It is True when there is a single data type assigned to the gene_type parameter. When the gene_type parameter is assigned a list/tuple/numpy.ndarray, then gene_type_single is set to False.
4.	The mutation_by_replacement flag now has no effect if gene_space exists except for the genes with None values. For example, for gene_space=[None, [5, 6]] the mutation_by_replacement flag affects only the first gene which has None for its value space.
5.	When an element has a value of None in the gene_space parameter (e.g. gene_space=[None, [5, 6]]), then its value will be randomly generated for each solution rather than being generate once for all solutions. Previously, the gene with None value in gene_space is the same across all solutions
6.	Some changes in the documentation according to issue #32: #32
@ahmedfgad
Copy link
Owner

The documentation of the latest release of PyGAD 2.14.0 is updated to only use pip3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants