This question is not a duplicate.
It pertains not just to renaming a virtual environment, but to actually moving it to a different directory, incl
YES, YOU CAN! (In windows
)
The workaround is easy, just move your virtual environment anywhere then edit activate.bat
inside scripts\
:
Move to the virtual environment to the desired directory
Right-click and edit activate.bat
located at venv_folder\scripts
.
Change VIRTUAL_ENV
variable from:
set VIRTUAL_ENV=C:\old_directory\venv_name
into
set VIRTUAL_ENV=C:\new_directory\venv_name
Save the edited batch file, and thats it!
NOTE: My solution should work and save windows users
setting up new virtual environments, I doubt this will work in other operating system since .bat
is from MS-DOS