Rastreio de Python de volta: aiml de importação

0

Olhando para executar um AIML chatbot :

thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ pip install python-aiml
Collecting python-aiml
  Downloading https://files.pythonhosted.org/packages/0a/4f/441770b04a0233f41c4168660b458ff6ab8587a6d304c934c6359eb223ef/python-aiml-0.9.1.zip (2.1MB)
    100% |████████████████████████████████| 2.2MB 550kB/s 
Collecting setuptools (from python-aiml)
  Downloading https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl (567kB)
    100% |████████████████████████████████| 573kB 1.3MB/s 
Building wheels for collected packages: python-aiml
  Running setup.py bdist_wheel for python-aiml ... done
  Stored in directory: /home/thufir/.cache/pip/wheels/a3/2b/24/3e30e3e2029d06e77ca15f85a8a84675a063d0136c28f66e60
Successfully built python-aiml
Installing collected packages: setuptools, python-aiml
Successfully installed python-aiml-0.9.1 setuptools-39.2.0
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ ./chatbot.py 
Traceback (most recent call last):
  File "./chatbot.py", line 3, in <module>
    import aiml
ModuleNotFoundError: No module named 'aiml'
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ python --version
Python 2.7.15rc1
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:   bionic
thufir@dur:~/python-aiml-chatbot$ 

Devo remover python e reinstalar com snap, talvez? Talvez pypy ? Não está familiarizado com o Python.

    
por Thufir 25.05.2018 / 05:39

0 respostas