ShuhuaGao / geppy

A framework for gene expression programming (an evolutionary algorithm) in Python
https://geppy.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
207 stars 76 forks source link

import problem #2

Closed bolzzzz closed 5 years ago

bolzzzz commented 5 years ago

Hi. I installed geppy following the instructions in readme, however if I cd to another project folder I can't import geppy. The error is

ModuleNotFoundError: No module named 'geppy.core'

Currently after installing geppy it can only be imported from its folder?

ShuhuaGao commented 5 years ago

After installation, it can be imported anywhere. Could you assure that it is installed properly? For example, in your terminal type pip list and you should see geppy in the list. If it is true, then in your program can you run import geppy successfully?

bolzzzz commented 5 years ago
  1. geppy installed:

    image
  2. under the dir of geppy I can import successfully:

    image
  3. cd to another dir, error happens:

    image

Currently I copy geppy files to my project dir so that I can use geppy. But it will be more convenient if you can fix this. Thanks!

ShuhuaGao commented 5 years ago

Yes, you are right. The error can be reproduced on Ubuntu, but not on Windows. I did't find the reason yet. However, a temporary solution is:

I have tested it on Ubuntu. It should work now.

bolzzzz commented 5 years ago

Thank you very much!