multiple python versions
Dan Yasny
dyasny at gmail.com
Thu Jul 22 19:09:15 IDT 2021
How about using virtualenv for alternative versions?
On Thu, Jul 22, 2021 at 12:05 PM Shlomo Solomon <shlomo.solomon at gmail.com>
wrote:
> The default Kubuntu installation is 3.8.10 and I do not want to
> uninstall it since that could potentially "break" something.
>
> But for various reasons (not relevant to this discussion), I also have
> 3.9.6 installed.
>
> I can run either one of them, but in some cases, imports of modules
> that work in 3.8.10 don't work in 3.9.6.
> >>> import scapy
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ModuleNotFoundError: No module named 'scapy'
>
> Although I don't want to re-install all modules, I "experimented" and
> got:
>
> sudo pip3 install scapy
> Requirement already satisfied: scapy in
> /usr/local/lib/python3.8/dist-packages (2.4.4)
>
> So even if I was willing to re-install everything, it would not work
> since the modules are already installed, but 3.9.6 does not "look" for
> them in the 3.8 directory.
>
> I know I can use venv to set up virtual environments for different
> versions, but although I haven't tried it, I don't see how that would
> solve the problem.
>
> Any ideas would be appreciated.
>
>
>
>
>
>
> --
> Shlomo Solomon
> http://the-solomons.net
> Claws Mail 3.17.5 - KDE Plasma 5.18.5 - Kubuntu 20.04
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20210722/540087b8/attachment.html>
More information about the Linux-il
mailing list