Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added


https://www.lynda.com/Flask-tutorials/Flask/521231/529877-4.html

1- install python installer: pip

2- install

...

virtualenv then install flask



1- install python installer: pip

https://pip.pypa.io/en/latest/installing.html#install-pip

http://en.wikipedia.org/wiki/Pip_%28package_manager%29

If not already install (usually)

wget https://pipbootstrap.pypa.io/en/latest/installing.html#install-pip

Already install (usually)

C:>python get-pip.py

Requirement already up-to-date: pip in c:\python34\lib\site-packages

Cleaning up...

Install pip ( ubuntu)

sudo apt-get install python-pipget-pip.py

sudo python get-pip.py


Install pip ( ubuntu)

sudo apt-get install python-pip



2- install virtualenv then install flask


sudo pip install virtualenv


mkdir ./testflask

cd testflask

virtualenv venv

source ./venv/bin/activate

pip install flask   (no need for sudo )


Other installationm

https://stackoverflow.com/questions/34785690/execute-hello-world-with-flask-importerror-no-module-named-flask


Firefox Install:

apt-get install firefox

apt-get install xorg


firefox &

python myfile.py 



------------------------------------------------------------------


List all dependencies:

onmylaptop@JKRIKER-T460:~/ansible$ sudo pip show ncclient

...