Home:ALL Converter>Python Modules in Ubuntu on Windows

Python Modules in Ubuntu on Windows

Ask Time:2021-07-23T20:43:54         Author:Panagiotis Fatouros

Json Formatter

I am on a windows laptop but I use the ubuntu terminal alongside windows PowerShell. When I first started writing python code I had 0 idea what I was doing (and still don't, I now am just aware how little I know) and now I have ended up with the problem that I have two different places where python has installed modules, one where ubuntu goes and one where windows PowerShell goes.

The path for windows is: c:\users\panagiotifatouros\appdata\local\programs\python\python38\lib\site-packages

Whereas for ubuntu is it: /home/panagiotisfatouros/.local/lib/python3.8/site-packages

This is causing a great deal of difficulty with installing modules now such as the radian software for R where I can run it from the powershell installation but not the ubuntu one.

Is there anyway I can get ubuntu and powershell to use the same directory for all the python uses? (Preferably ubuntu would move to using the powershell directory because it works the best).

Also I am not sure if this is relevant but whenever using ubuntu I write pip3 but for windows powershell I write pip.

Author:Panagiotis Fatouros,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/68499393/python-modules-in-ubuntu-on-windows
yy