Closed user-11150 closed 3 months ago
Do not try to put virtualenv or any executable code to sdcard. Sdcardfs has restrictions and does not allow executables or symlinks.
Use conda?
It does not matter what you use to create virtualenv. Do not use sdcard or shared storage for this.
Why I can run c extensions(like viztracer) in external storage
Scripts can be used. But not executables.
I mean if you do something like python3 ./somescript.py
it will run fine, but ./somescript.py
will not work. And many python stuff uses the latter option.
Is /bin/xxx not external storage?
Why I can run like /bin/ls
/bin is a part of core OS.
Is external storage just /storage/emulated/0/
and SD cards?
You should not use anything under /storage
and /mnt
.
Do you have VM can run tsu?
Termux does not run in VMs properly. They do not have proper implementations for some subsystems required by Termux.
Is kali not a VM?
/storage/emulated/0
, external SD cards and whatever else except private internal storage (/data/data/com.termux) doesn't support execution and special files such as symbolic links.
Read https://wiki.termux.com/wiki/Internal_and_external_storage
Please setup your stuff in Termux home directory. Many code editors can access it without root permissions. QuickEdit app is an example of such editors.
Do not report issues about stuff beyond the control of Termux, like behavior of Android OS and file system limited features.
Is kali not a VM?
No, it is not a VM but is a distribution that is not related to Termux in any way.
Problem description
python virtualenv cannot create in external storage
Steps to reproduce the behavior.
Use virtualenv:
Use venv:
What is the expected behavior?
Successful to create virtualenv
System information