Ok,
I am running OpenSuse Leap 15
I have pyenv properly (I'm quite (sort of, maybe) confident of this) running, and set up to run python 3.7.0 when I execute python from shell.
I also have a virtual environment created with:
I then run this simple script:
I am running OpenSuse Leap 15
I have pyenv properly (I'm quite (sort of, maybe) confident of this) running, and set up to run python 3.7.0 when I execute python from shell.
I also have a virtual environment created with:
python -m venv flaskappI start (or so I thought) my virtual environment without error, using (from flaskapp directory):
./bin/activateThen run Python and pip check:
arz60p@linux-nnem:/run/media/Larz60p/Data-4TB/python/e-h/f/flaskapp/app/tools> python -V Python 3.7.0 Larz60p@linux-nnem:/run/media/Larz60p/Data-4TB/python/e-h/f/flaskapp/app/tools> pip -V pip 10.0.1 from /home/Larz60p/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pip (python 3.7)and it doesn't appear to be running local copy
I then run this simple script:
# Check if in virtual environment import sys if hasattr(sys, 'real_prefix'): print('Running virtual environment') else: print('Not running virtual environment')and get reply:
Larz60p@linux-nnem:/run/media/Larz60p/Data-4TB/python/e-h/f/flaskapp/app/tools> python CheckEnvironment.py Not running virtual environmentWhy?