Mojo and Max installation issue
when I am running the commands
modular install mojo
and
modular install max
, I am getting the following error as in the picture.
WSL 2
Ubuntu 22.04
modular 0.5.1 (1b608e3d)18 Replies
Could you try to uninstall everything and start from scratch including removing the
~/.modular/cache
https://docs.modular.com/engine/get-startedGet started with MAX Engine | Modular Docs
Welcome to the MAX Engine setup guide!
hi i am getting these errors while installing the max and mojo. i have checked the paths and its perfectly fine with that for python. KDE NEON build on Ubuntu 22.04😩
The error says it can't find libpython. Make sure Python >= 3.8 is installed
I have python 3.12
ok, I will try
I have just retried it, reinstalled from scratch
same issue.
@Ehsan M. Kermani
Hi @Krishna give this a try installing miniconda: https://docs.conda.io/projects/miniconda/en/latest/#quick-command-line-install
Make sure you init and activate:
And run this:
Note that KDE NEON isn't officially supported, and I'm not sure where it puts
libpython.so
, it might not even have it. But conda comes with libpython so the above should work, just keep in mind that Mojo will be linking to your conda base environment, so if you want to install packages do:
etc.
@Krishna that isn't showing the error produced, can you try running the command manually and showing what it outputs:
Also @Krishna please confirm if you're using WSL2 or WSL1 as the former is supported by MAX
I am using wsl2
Congrats @Krishna, you just advanced to level 1!
/home/kittupriyatham/.modular/pkg/packages.modular.com_mojo/venv/bin/python3: No module named ensurepip
Hey that should be included with the latest installer if you run this again:
If that doesn't work do:
Then try again
no it is not working.
Maybe your system is missing the libpython3.12.so. Install the Python3.12-dev headers:
sudo apt install python3.12-dev
Then modular install mojo
This worked for me.
You do not need to export LD_LIBRARY_PATH with this solution.
In my case, I installed Python3.12 from the deadsnakes ppa, because of WSL2 VMok.
Thank you all very much, finally I have installed the modular max.
How did you fix it?
as said by @PriNova I have added deadsnakeppa and then installed python3.12-dev
then, I was able to install the package without any issues directly.
I did this on fresh download.
Now, I have few doubts,
on how to use the max package.
to leverage the c, python, and mojo through max and possibility of interlinking of libraries or functionalities between the 3 languages.
As far as I remember, this issue persisted since the closed beta of Mojo back in summer last year. Installing the Python dev library solved that issue already these days.