Why portable Python is not working with relative path?

125 views Asked by At

I want to make a portable python, so i use relative path in pyvenv.cfg like this:

home = ..\python310
include-system-site-packages = false
version = 3.10.9

But i keep getting this error (everything else is okay i think):

No Python at '"..\python310\python.exe'

It can be seen that there is a " symbol in the path, but i didn't put it there, it is likely causing the problem.

When im using absolute path everything is okay:

home = C:\Users\User\OneDrive\Desktop\PortablePython\python310
0

There are 0 answers