Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run a python virtual environment on termux

Tags:

python

I am trying to use a virtual environment on android. using virtualenv env1 command but I am getting the following error

PermissionError: [Errno 1] Operation not
permitted:'/data/data/com.termux/files/usr/bin/python3' -> 
'/storage/emulated/0/@tsmile/projects/env1/bin/python'
like image 822
Manohar Avatar asked Sep 01 '26 20:09

Manohar


1 Answers

It can not run in .

"/Storage/emulated/0/....."

It can only be run in termux Home directory .

For creating it :

  1. cd ~

  2. virtualenv newenv.

  3. source newenv/bin/activate .

Now venv is created in /data/data/com.termux/files/home

like image 63
Prashant Rawat Avatar answered Sep 04 '26 09:09

Prashant Rawat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!