Open MarkPadley opened 3 years ago
I have the same issue if I use the ! pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
method, however ! pip3 install twint
works.
I think it doesn't work because of the warning: "The script twint in installed in '/root/.local/bin which is not on PATH", so when you import twint
, it can't find it. This stack overflow Q&A might be of use if you want to try to solve the issue, but ! pip3 install twint
works.
I have the same issue if I use the
! pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
method, however! pip3 install twint
works.I think it doesn't work because of the warning: "The script twint in installed in '/root/.local/bin which is not on PATH", so when you
import twint
, it can't find it. This stack overflow Q&A might be of use if you want to try to solve the issue, but! pip3 install twint
works.
This isn't working. I tried ! pip3 install twint and installed the library. However, in the next step, I am getting, there is no module named Twint. Kindly clarify what should be done?
This works for me:
import os
!pip install twint
!pip uninstall twint -y
!git clone --depth=1 https://github.com/twintproject/twint.git
%cd twint/
!pip3 install . -r requirements.txt
%cd ..
and if you need c.Limit then use:
import os
from google.colab import output
!pip install twint
!pip uninstall twint -y
!git clone --depth=1 https://github.com/twintproject/twint.git
%cd twint/twint/
!sed -i 's/tweet_count = 100/tweet_count = 100 if not config.Limit else config.Limit/g' url.py
%cd ..
!pip3 install . -r requirements.txt
%cd ..
output.clear()
import os !pip install twint !pip uninstall twint -y !git clone --depth=1 https://github.com/twintproject/twint.git %cd twint/ !pip3 install . -r requirements.txt %cd ..
Thanks this worked :)
Works pretty well ! thanks @Branch-h.
! pip3 install twint
Work pretty well, Thank you
Opened Google COLAB and installed twint using...
! pip3 uninstall twint ! pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
In the very next cell, COLAB tells me it cannot recognise 'twint'! I want to perform some GPU intensive NLP, hence the requirement for a COLAB. Please help!
ModuleNotFoundError Traceback (most recent call last)