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

Trouble while installing package #23

Open
faridabdolhosseinpour opened this issue Jul 17, 2021 · 0 comments
Open

Trouble while installing package #23

faridabdolhosseinpour opened this issue Jul 17, 2021 · 0 comments
Assignees
Labels

Comments

@faridabdolhosseinpour
Copy link

I use GoogleColab
First i installed using this command :

%%bash
git clone https://github.com/gmontamat/gentun
cd gentun
python setup.py install

then i imported package using this command

from gentun import GeneticAlgorithm, Population, XgboostIndividual

i face this error

ImportError                               Traceback (most recent call last)
<ipython-input-2-a67f03c5af3f> in <module>()
      1 from sklearn.datasets import fetch_california_housing
----> 2 from gentun import GeneticAlgorithm, Population, XgboostIndividual

ImportError: cannot import name 'GeneticAlgorithm' from 'gentun' (unknown location)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

after excuting this command output is

import gentun
dir(gentun)
['__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__']
@gmontamat gmontamat self-assigned this Jul 17, 2021
@gmontamat gmontamat added the bug label Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants