Python doesn't work: ImportError: No module named 'logging'

前端 未结 1 1626
挽巷
挽巷 2021-01-21 06:17

I\'m experiencing a very strange issue on my Digitalocean Ubuntu droplet, where Python 2.7 gives me the following error:

  from instagram import InstagramAuthent         


        
相关标签:
1条回答
  • 2021-01-21 06:31

    Make sure you use system-wide python and not virtualenv-from-somewhere:

    which python
    

    Try to find out where this module is located:

    sudo updatedb
    locate logging | grep python
    

    Then try adding this path to PYTHONPATH

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