0

我已经使用了本教程和其他教程。我已经尝试了几十次,几乎花了整整一天的时间,但我无法成功。

无论如何,我无法超越:

$ 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
>>> 

PS我不知道python。我刚刚使用在线可用的说明安装了 python,并运行了测试以确保它已安装。

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

编辑:

当我做: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
4

0 回答 0