CornellNLP / ConvoKit

ConvoKit is a toolkit for extracting conversational features and analyzing social phenomena in conversations. It includes several large conversational datasets along with scripts exemplifying the use of the toolkit on these datasets.
https://convokit.cornell.edu/documentation/
MIT License
556 stars 129 forks source link

Issues in installation #98

Closed aljanaidehosu closed 3 years ago

aljanaidehosu commented 3 years ago

When I try: pip3 install convokit, I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-1rjvi1tt/spacy/setup.py", line 5, in <module>
    import numpy
ModuleNotFoundError: No module named 'numpy'

I have Python 3.6.2 installed, and numpy is also installed.

How can I fix this?

calebchiam commented 3 years ago

If I had to guess, your pip3 likely does not point to your Python 3.6.2 environment. I would suggest initialising and activating an virtualenv to install ConvoKit in.

aljanaidehosu commented 3 years ago

If I had to guess, your pip3 likely does not point to your Python 3.6.2 environment. I would suggest initialising and activating an virtualenv to install ConvoKit in.

Thanks for your reply! I actually do use virtual env. These are the steps I follow:

conda create --name convokit2 python=3 source activate convokit pip3 install convokit

calebchiam commented 3 years ago

Hmm, I'm not sure what the issue is then, I just ran your sequence of commands (correcting the second line to 'convokit2') and it worked just fine for me. If it helps, I'm on conda 4.10.3, and Python 3.9.6 was used.

aljanaidehosu commented 3 years ago

So I managed to resolve this issue by running the command: python3 -m pip install --upgrade pip setuptools wheel