0

I was trying to install flask-socketio on Ubuntu and in order to succeed, I read here on SO I should issue the following command: "sudo apt-get install python-dev libxml2-dev libxslt-dev".

After that I just can't find gunicorn, flask, etc.

How can I solve this?

Edit: I am not using VirtualEnv, so I install the modules using sudo apt-get install module name. Also, this is NOT duplicate, as the suggested answer speaks about VirtualEnvs.

ERROR on Console:

    File "/usr/local/bin/flask", line 7, in <module>
        from flask.cli import main
ModuleNotFoundError: No module named 'flask'
Julio S.
  • 542
  • 4
  • 14
  • 2
    I assume you ran `pip install flask`, are you sure you are using the right pip? (e.g. try `pip3 install flask` and `pip2 install flask`. – Simon May 25 '19 at 18:49
  • I am not using VirtualEnv or pip... I install the modules directly through sudo apt-get install – Julio S. May 25 '19 at 19:30
  • I have figured out the Python version changed on the system. Now I have to understand how to activate Python 3.6 back. – Julio S. May 25 '19 at 20:10
  • "in order to succeed, I read here on SO I should issue the following command:..." could you link the advice – max630 May 26 '19 at 06:24
  • "/usr/local/bin/flask" installed packages should never put anything into the "/usr/local/". You really should describe in more details what are you doing – max630 May 26 '19 at 06:25

0 Answers0