ImportError: No module named 'appdirs'

I am trying to get a program called hangoutsbot to work on my Linux server. I am currently using a digital oceans server. However, every time I try to run the script, it gives me an error message:

ImportError: No module named 'appdirs'

I'm not sure what to do here. I already tried installing appdirs from npm to no avail. This script works fine on my Mac, however it doesn't seem to want to run on my Linux server. Any help would be appreciated.

+4
source share
3 answers

. :

Traceback (most recent call last):
  File "/usr/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 74, in <module>
    import appdirs
ImportError: No module named appdirs

, pypi.python.org :

wget https://pypi.python.org/packages/48/69/d87c60746b393309ca30761f8e2b49473d43450b150cb08f3c6df5c11be5/appdirs-1.4.3.tar.gz
gunzip appdirs-1.4.3.tar.gz
tar -xvf appdirs-1.4.3.tar
cd appdirs-1.4.3
sudo python setup.py install

!

+7

hangoutsbot python . , python3.4 python3.5.

python3.5 hangoutsbot/hangoutsbot.py -d
0

Ubuntu 14.04, pip. python 2.7. "pip install --upprade pip" . ( , , .)

This is where I found the solution:

https://www.reddit.com/r/Python/comments/5pwngp/setuptools_34_has_been_released_and_breaks_with/
0
source

Source: https://habr.com/ru/post/1609097/


All Articles