如何用python 2.7.5安装pyevolve?

时间:2016-05-13 20:46:30

标签: python python-2.7 genetic-algorithm genetic-programming pyevolve

我使用了this教程和其他人。我已经尝试过几十次并且已经度过了将近一整天,但我无法成功。

无论如何,我都无法超越这个:

$ python
Python 2.7.5 (default, May 13 2016, 16:30:46) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyevolve
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pyevolve
>>> 

P.S。 我不知道python。我刚刚使用在线提供的指令安装了python并运行了测试以确保安装它。

我对pyevolve也不太了解。我只需要安装它来让我的实验运行。我的实验中的工具有python脚本,需要pyevolve。

修改

当我这样做时:easy_install pyevolve

我明白了:

/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py:2512:  PEP440Warning: 'python-apt (0.9.3.11build1)' is being parsed as a legacy,  non PEP 440, version. You may find odd behavior and sort order. In  particular it will be sorted as less than 0.0. It is recommend to migrate    to PEP 440 compatible versions.
  PEP440Warning,
Searching for pyevolve
Best match: Pyevolve 0.6
Removing Pyevolve 0.6rc1 from easy-install.pth file
Adding Pyevolve 0.6 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Processing dependencies for pyevolve
Finished processing dependencies for pyevolve

代表easy_install --upgrade pyevolve

我明白了:

/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py:2512:  PEP440Warning: 'python-apt (0.9.3.11build1)' is being parsed as a legacy,  non PEP 440, version. You may find odd behavior and sort order. In  particular it will be sorted as less than 0.0. It is recommend to migrate  to PEP 440 compatible versions.
   PEP440Warning,
Searching for pyevolve
Reading https://pypi.python.org/simple/pyevolve/
Best match: Pyevolve 0.6rc1
Processing Pyevolve-0.6rc1-py2.7.egg
Removing Pyevolve 0.6 from easy-install.pth file 
Adding Pyevolve 0.6rc1 to easy-install.pth file
Installing pyevolve_graph.py script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/Pyevolve-0.6rc1-py2.7.egg
Processing dependencies for pyevolve
Finished processing dependencies for pyevolve

0 个答案:

没有答案