I just installed virtualenv and am getting an error trying to create an environment. Based on some print statements I added, sys.prefix seems to be getting lowercased somewhere within virtualenv.exe, before runpy.py starts. And that leads to an error in change_prefix.
I can't figure out what's going on inside virtualenv.exe, so this was as far as I was able to debug it. Any advice? C:\Users\Jim>mkvirtualenv lob mkvirtualenv.bat about to call virtualenv.exe, sys.prefix = C:\Users\Jim\ AppData\Local\Programs\Python\Python36 _run_module_as_main entered, sys.prefix = c:\users\jim\appdata\local\ programs\python\python36 Traceback (most recent call last): File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\runpy.py", line 194, in _run_module_as_main "__main__", mod_spec) File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Scripts\virtualenv.exe\__main__.py" , line 9, in <module> File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\site-packages\virtualenv.py" , line 714, in main symlink=options.symlink) File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\site-packages\virtualenv.py" , line 926, in create_environment site_packages=site_packages, clear=clear, symlink=symlink)) File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\site-packages\virtualenv.py" , line 1138, in install_python copy_required_modules(home_dir, symlink) File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\site-packages\virtualenv.py" , line 1068, in copy_required_modules dst_filename = change_prefix(filename, dst_prefix) File "C:\Users\Jim\AppData\Local\Programs\Python\Python36\Lib\site-packages\virtualenv.py" , line 1042, in change_prefix (filename, prefixes) AssertionError: Filename C:\Users\Jim\AppData\Local\Programs\Python\Python36 \Lib\os.py does not start with any of these prefixes: [ 'C:\\users\\jim\\appdata\\local\\programs\\python\\python36', 'C:\\users\\jim\\appdata\\local\\programs\\python\\python36'] I'm running windows 7 64 bit, python 3.6.1, virtualenv 15.1.0. -- You received this message because you are subscribed to the Google Groups "virtualenv" group. To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscr...@googlegroups.com. To post to this group, send email to python-virtualenv@googlegroups.com. Visit this group at https://groups.google.com/group/python-virtualenv. For more options, visit https://groups.google.com/d/optout.