As of python 3.3 the stdlib has the venv module for creating virtual environments. Are python 3.x venv environments relocatable?
Asked
Active
Viewed 2,662 times
12
-
Pretty much a duplicate of [python - Renaming a virtualenv folder without breaking it - Stack Overflow](https://stackoverflow.com/questions/6628476/renaming-a-virtualenv-folder-without-breaking-it) ? – user202729 Feb 12 '21 at 14:42
-
1@user202729 virtualenv package and the python3 venv package are not the same and as such this question stands on its own – olokki Mar 03 '21 at 07:02
1 Answers
5
Nope, commands installed in ./bin
have fixed paths in shabang lines.

RobertT
- 4,300
- 3
- 29
- 36
-
so it's portable if you don't care about `./bin` (the only thing you should be calling from that in the first place is `python3` anyhow) – cowbert Oct 09 '18 at 20:33