2016-Jul-29 Hi Detlev: Thank you for your answer. Resolved via:
Settings menu >> Preferences >> Debugger >> Python >> Python Interpreter: Was: /home/victoria/anaconda3/envs/py27/bin/python So, I was getting (e.g.), in the Eric Python terminal: >>> import tensorflow ImportError: No module named tensorflow BUT I wanted this (other) Py2.7 venv (that I use for TensorFlow): (tf-env)[victoria@victoria notebooks]$ which python /home/victoria/anaconda3/envs/tf-env/bin/python (tf-env)[victoria@victoria notebooks]$ So, per your suggestion below, I swapped those PATHS (above) and then reloaded the Eric Python2 terminal: Eric terminal >> right-click [context menu] >> Start >> Python2 [Basically, reloads the Python kernel/interpreter.] Now: >>> import tensorflow >>> import numpy >>> import theano >>> ... Works! Q.E.D. Thank you, appreciated! :-) ============================================================================== 2016-Jul-29 From: Detlev <***> To: eric@riverbankcomputing.com Subject: Re: [Eric] How can I install Eric6 in a virtual environment? Hello Victoria, What in particular do you want to do? Run Eric from within a virtual environment, or run Eric and develop using a virtual environment? Both possibilities are given. 1. Just install eric with the python interpreter of the virtual environment, e.g. ~/pyenv/bin/python install.py 2. Just configure the Python interpreter to be used (in your case Python2) to be the one of the virtual environment (Configuration dialog, Debugger->Python page). Detlev ============================================================================== On Thursday 28 July 2016, 11:54:15 Victoria wrote: Subject: How can I install Eric6 in a virtual environment? Hello: I have an Anaconda virtual environment in which I would like to use Eric6, on an Arch Linux-based system. The Python in that venv is Python 2.7. I installed Eric6 within my venv (tf-env) using Arch Linux' pacman package manager, but when I start Eric6, it launches in Python 3.5. In that (Eric's) Python terminal, I can right-click >> Start >> change the Python interpreter to either of Python2 or Python3. However, I don't see my virtual environments (e.g. tf-env, in which I want to work). That venv (tf-env) has Python packages that I use (numpy theano; tensorflow; ...), that are not available in Python {2|3} (hence, Eric). Suggestions? ------------------------------------------------------------------------------ (tf-env)[victoria@victoria anaconda3]$ which python /home/victoria/anaconda3/envs/tf-env/bin/python (tf-env)[victoria@victoria anaconda3]$ python --version Python 2.7.12 :: Anaconda 4.1.1 (64-bit) (tf-env)[victoria@victoria anaconda3]$ which eric6 /usr/bin/eric6 ============================================================================== _______________________________________________ Eric mailing list Eric@riverbankcomputing.com https://www.riverbankcomputing.com/mailman/listinfo/eric