<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b style="font-size: 11pt; font-family: Calibri, sans-serif; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit;">From:</b><span style="font-size: 11pt; color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"> some.user@posteo.net
<some.user@posteo.net></span><br>
</div>
<div>
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Sent:</b> Sunday, May 17, 2020 10:32 AM<br>
<b>To:</b> eric@riverbankcomputing.com <eric@riverbankcomputing.com><br>
<b>Subject:</b> Trouble getting started with Eric and pyenv</font>
<div> </div>
</div>
<div>I have installed Eric in a virtual Env with pyenv and I need to have all my projects in own virtualenvs (to move them to other computers).
<br>
Using Ubuntu18.04, my Eric20.5 does not see my installed packages. I see in the PyPI window a different list than on the command line. Programs using the standard library work fine in Eric. Programs that fail in Eric work fine on the command line. I ran out
of ideas. <br>
<br>
Here is what I did:<br>
sudo apt purge eric # make sure the old stuff is fully gone<br>
pyenv install 3.6.9<br>
pyenv virtualenv 3.6.9 eric6<br>
pyenv activate eric6<br>
pip install eric-ide # installs fine<br>
eric6 <br>
<br>
Now for my simple projects I keep a common virtual env "default"<br>
pyenv virtualenv 3.6.9 default<br>
pyenv activate default # works fine<br>
pip install wxPython <br>
<br>
Then I set "default" at Settings/Debugger/Python3 and both Run dialogs. When I open Eric's PyPI window and select "default" I see this:<br>
pip 18.1<br>
setuptools<br>
On the CLI with pip list I get:<br>
pip 20.1 <br>
setuptools <br>
wxPython<br>
numpy<br>
So somehow the "default" virtualevn Eric uses is something different that the "default" pyenv uses on the command line. I read that the pyenv approach with shims can cause difficulties, but I have seen answers in this archive that suggest others are using pyenv
as well. So I am hoping I have overlooked something.<br>
<br>
Thanks <br>
Tiger <br>
</div>
</div>
</body>
</html>