1- link python ke python3
update-alternatives --remove python /usr/bin/python2
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
pastikan python --version paparkan python3
- link kan
3- install virtualenv
- setup virtual env for flask(eg)
4- enter into flask_env
- prompt will be change
5- nak keluar virt env
ref:
update-alternatives --remove python /usr/bin/python2
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
pastikan python --version paparkan python3
2- link pip ke pip3
-install
apt-get install python3-pip
which pip3
ln -s /usr/bin/pip3 /usr/bin/pip
pip -V
pip install virtualenv
virtualenv --python=python3 flask_env
source/flask_env/bin/activate
# (flask_env) mycert@my_dir:
deactivate
1- https://www.howtoforge.com/tutorial/how-to-install-django-1-10-on-ubuntu-16-04/
2- https://www.howtoforge.com/tutorial/how-to-install-django-on-ubuntu/
No comments:
Post a Comment
Terima kasih