Discussion:
[Eric] Virtual Environment in Eric
Tony Arnold
2018-05-29 18:21:09 UTC
Permalink
I'm trying to understand Eric's support for virtual environments. There is an option under Extras 'Virtualenv configurator' which, does indeed configure up a virtual environment. I can run my code in this environment by specifying it as the path to the Python executable. This option appears twice in the menu, which is odd.

However, under Extras->Python Package Management, there is an option 'Edit Current Virtualenv Configuration ...'. However, when I select that, I get a message 'No valid configuration path determined. Is a virtual environment selected?'.

So my question is: is there a way to select a virtual environment in Eric? I've searched the menu items and the settings and the project properties, but I cannot find anything that relates to this?

The VirtualenvInterface plugin is present and active.

Am I missing something, or is this feature a work in progress to be available in some future release?

(I'm running Eric 18.04 on Ubuntu 18.04 using the vanilla Gnome desktop. So PyQt 5.10.1 and Qt 5.9.5. I also have package python3-venv installed, which I believe provides pyvenv.)

Regards,
Tony.
--
Tony Arnold MBCS, CITP | Senior IT Security Analyst | Directorate of IT Services | G64, Kilburn Building | The University of Manchester | Manchester M13 9PL | T: +44 161 275 6093 | M: +44 773 330 0039
Tony Arnold
2018-05-30 09:05:58 UTC
Permalink
Detlev,
Thanks for your response.
The fact it appears twice is related to a double installation. The
plug-in has been move to the eric core distribution and the
standalone plug-in has been obsoleted. Please uninstall it.
OK, will do.
The mentioned configuration option is related to usage of pip only.
Does this mean I can use Pip from Eric to install into a virtual
environment? I'll have a play.
In order to use a virtual envelope for your Python project simply
configure the path to the interpreter in your project debugger
properties.
Yes, I'm already doing that and it works brilliantly.
Thanks for your help.
Regards,Tony.
Post by Tony Arnold
I'm trying to understand Eric's support for virtual environments.
There is an option under Extras 'Virtualenv configurator' which,
does indeed configure up a virtual environment. I can run my code
in this environment by specifying it as the path to the
Python executable. This option appears twice in the menu, which is
odd.
However, under Extras->Python Package Management, there is an
option 'Edit Current Virtualenv Configuration ...'. However, when I
select that, I get a message 'No valid configuration path
determined. Is a virtual environment selected?'.
So my question is: is there a way to select a virtual environment
in Eric? I've searched the menu items and the settings and the
project properties, but I cannot find anything that relates to
this?
The VirtualenvInterface plugin is present and active.
Am I missing something, or is this feature a work in progress to be
available in some future release?
(I'm running Eric 18.04 on Ubuntu 18.04 using the vanilla Gnome
desktop. So PyQt 5.10.1 and Qt 5.9.5. I also have package python3-
venv installed, which I believe provides pyvenv.)
Regards,
Tony.
--
Tony Arnold MBCS, CITP | Senior IT Security Analyst | Directorate
of IT Services | G64, Kilburn Building | The University of
Manchester | Manchester M13 9PL |
T: +44 161 275 6093 |
M: +44 773 330 0039
--
Tony Arnold MBCS, CITP | Senior IT Security Analyst | Directorate of IT Services | Desk 51, Office 2, Kilburn Building | The University of Manchester | Manchester M13 9PL | T: +44 161 275 6093 | M: +44 773 330 0039
Loading...