(flask)hyungro@p:~/flask_cm/flask_cm$ PYTHONPATH=../ python server.py
Traceback (most recent call last):
File "server.py", line 7, in
from sh import cm
ImportError: cannot import name cm
cm command doesn't exist on the machine. To solve this import error,
1) install cm
-> cm CLI is removed from setup.py. At this time, there is no way to install cm.
2) change cm to python function call
-> install cm packages and import cm class to use
(flask)hyungro@p:~/flask_cm/flask_cm$ PYTHONPATH=../ python server.py Traceback (most recent call last): File "server.py", line 7, in
from sh import cm
ImportError: cannot import name cm
cm command doesn't exist on the machine. To solve this import error, 1) install cm -> cm CLI is removed from setup.py. At this time, there is no way to install cm.
2) change cm to python function call -> install cm packages and import cm class to use