Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gulp template with python?
#6
To test it with Python 3.7 as it's 1.5 year since i made it.
It's nice to have all in one place,but it's not needed to run a template with Flask that i think you try to do.
# Make virtual environment 
E:\div_code
λ python -m venv flask_env

# cd in
E:\div_code
λ cd flask_env

# Activate  
E:\div_code\flask_env
λ E:\div_code\flask_env\Scripts\activate

# Here you most see (flask_env)
(flask_env) E:\div_code\flask_env
λ pip -V
pip 10.0.1 from e:\div_code\flask_env\lib\site-packages\pip (python 3.7)

# Upgrade pip
(flask_env) E:\div_code\flask_env
λ python -m pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/46/dc/3...../pip-19.0.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 2.4MB/s
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-19.0.1

# Test pip it's 19.0
(flask_env) E:\div_code\flask_env
λ pip -V
pip 19.0.1 from e:\div_code\flask_env\lib\site-packages\pip (python 3.7)
So at this point virtual environment work.
Most stay in environment active (flask_env).
Then install Flask and nodeenv.
# install flask
(flask_env) E:\div_code\flask_env
λ pip install flask
Collecting flask
.....
Installing collected packages: click, itsdangerous, MarkupSafe, Jinja2, Werkzeug, flask
Successfully installed Jinja2-2.10 MarkupSafe-1.1.0 Werkzeug-0.14.1 click-7.0 flask-1.0.2 itsdangerous-1.1.0

# Install nodeenv
(flask_env) E:\div_code\flask_env
λ pip install nodeenv
Collecting nodeenv
  Downloading https://files.pythonhosted.org/packages/00/6e/e....../nodeenv-1.3.3.tar.gz
Successfully installed nodeenv-1.3.3

# Now use nodeenv -p
(flask_env) E:\div_code\flask_env
λ nodeenv -p
 * Install prebuilt node (11.8.0) ..... done.
 * Overwriting e:\div_code\flask_env\Scripts\activate.bat with new content
 * Overwriting e:\div_code\flask_env\Scripts\deactivate.bat with new content
 * Overwriting e:\div_code\flask_env\Scripts\Activate.ps1 with new content
symbolic link created for e:\div_code\flask_env\Scripts\nodejs.exe <<===>> node.exe
 * Install npm.js (latest) ...

# Test node
(flask_env) E:\div_code\flask_env
λ node -v
v11.8.0

# Test npm
(flask_env) E:\div_code\flask_env
λ npm -v
6.7.0
So it still work,try to follow it and do not skip a step.
Reply


Messages In This Thread
gulp template with python? - by IMuriel - Jan-28-2019, 06:23 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 12:47 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 03:41 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 04:07 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 05:08 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 05:48 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 06:01 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 06:28 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 06:36 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 06:58 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 07:07 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 07:27 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 08:30 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020