<div dir="ltr">How about using virtualenv for alternative versions? </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 22, 2021 at 12:05 PM Shlomo Solomon <<a href="mailto:shlomo.solomon@gmail.com">shlomo.solomon@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The default Kubuntu installation is 3.8.10 and I do not want to<br>
uninstall it since that could potentially "break" something.<br>
<br>
But for various reasons (not relevant to this discussion), I also have<br>
3.9.6 installed.<br>
<br>
I can run either one of them, but in some cases, imports of modules<br>
that work in 3.8.10 don't work in 3.9.6.<br>
>>> import scapy<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
ModuleNotFoundError: No module named 'scapy'<br>
<br>
Although I don't want to re-install all modules, I "experimented" and<br>
got:<br>
<br>
sudo pip3 install scapy<br>
Requirement already satisfied: scapy in<br>
/usr/local/lib/python3.8/dist-packages (2.4.4)<br>
<br>
So even if I was willing to re-install everything, it would not work<br>
since the modules are already installed, but 3.9.6 does not "look" for<br>
them in the 3.8 directory.<br>
<br>
I know I can use venv to set up virtual environments for different<br>
versions, but although I haven't tried it, I don't see how that would<br>
solve the problem.<br>
<br>
Any ideas would be appreciated.<br>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Shlomo Solomon<br>
<a href="http://the-solomons.net" rel="noreferrer" target="_blank">http://the-solomons.net</a><br>
Claws Mail 3.17.5 - KDE Plasma 5.18.5 - Kubuntu 20.04<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div>