waydroid_script icon indicating copy to clipboard operation
waydroid_script copied to clipboard

Maybe use venv is a better solution

Open ghost opened this issue 2 years ago • 2 comments

A fresh installed ubuntu/debain system does not contain pip by default. When run command python3 -m ensurepip --default-pip, it says:

Using pip together with the system python might have unexpected results for any system installed module, so use it on your own risk, or make sure to only use it in virtual environments.

So i tried venv and it works well. Here's how I did.

  1. sudo apt install python3-venv #install python venv module globally
  2. cd waydroid_script && python3 -m venv venv --system-site-packages #create a venv with system's packages
  3. source venv/bin/activate #activate the venv environment
  4. sudo ./venv/bin/python3 -m pip install -r requirements.txt #install required python modules
  5. sudo ./venv/bin/python3 main.py -i/-g/-n/-h/-w

done.

ghost avatar Feb 12 '23 13:02 ghost

I'm struggling so hard because of new Ubuntu pip problem. But you save my life.

ducanh-le avatar Jun 03 '23 19:06 ducanh-le

FYI I couldn't get the newer venv method to work on pinephone pro with arch. Had to use "sudo python3 main.py install magisk" like usual.

BillFleming avatar May 30 '24 03:05 BillFleming