Installed Python 2.7 in an environment, but the environment runs on the root Python, version 3.5

0 views
Skip to first unread message

sergeetie...@gmail.com

unread,
Jun 30, 2016, 1:24:10 AM6/30/16
to Anaconda - Public
On Windows with Python 3.5 installed at root, I created a virtual environment with Python 2.7. However, once activated, the virtual environment runs on Python 3.5.

> python -V
Python 3.5.1 :: Anaconda 4.1.0 (64-bit)

> conda list
# packages in environment at C:\Users\Serge-Étienne\Anaconda3\envs\pysd:
#
pip                       8.1.2                    py27_0
python                    2.7.12                        0
setuptools                23.0.0                   py27_0
vs2008_runtime            9.00.30729.1                  2
wheel                     0.29.0                   py27_0


How can I force the environment to run on the correct Python version?

Ilan Schnell

unread,
Jun 30, 2016, 1:27:46 AM6/30/16
to Anaconda
This means your not executing the correct Python.  You can always use
> python -c "import sys; print(sys.prefix)"
to see which prefix the Python is coming from.  Also, on Windows, you can use
> where python

It all depends on how your PATH environment variable is set.

--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+u...@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/anaconda/.

sergeetie...@gmail.com

unread,
Jun 30, 2016, 1:55:00 AM6/30/16
to Anaconda - Public
Could you suggest how should I configure the PATH to include the new environment?
Reply all
Reply to author
Forward
0 new messages