Maybe use venv is a better solution #69

Open
opened 2023-02-12 08:01:19 -05:00 by ghost · 2 comments
ghost commented 2023-02-12 08:01:19 -05:00 (Migrated from github.com)

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.

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.
ducanh-le commented 2023-06-03 15:19:58 -04:00 (Migrated from github.com)

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

I'm struggling so hard because of new Ubuntu pip problem. But you save my life.
BillFleming commented 2024-05-29 23:52:21 -04:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wbruno/waydroid_script#69