ImportError: No module named tweepy

前端 未结 3 827
礼貌的吻别
礼貌的吻别 2020-12-12 00:06

I installed pip in a virtual environment. It installed without errors. Here\'s what I get when I run sudo pip install tweepy after activating the venv:

Requi         


        
相关标签:
3条回答
  • 2020-12-12 00:53

    For installing the tweepy module just write pip install tweepy and it will work

    0 讨论(0)
  • 2020-12-12 01:01

    Don't use sudo to call pip when you're in a virtualenv: the root user won't have the virtualenv activated so the package is installed globally, as you can see from the paths. Just run pip install tweepy.

    0 讨论(0)
  • 2020-12-12 01:12

    Since you are using virtualenv you don't need to use sudo.

    0 讨论(0)
提交回复
热议问题