Has anyone had success with setting up virtual environments with mayapy? 
I'm seeing the following error and I'm guessing that the issue is with the 
python home and the binary being in different locations.

C:\dev\hg_checkouts\mayaenv>virtualenv --python="C:\Program 
Files\Autodesk\Maya2018\bin\mayapy.exe" test
Running virtualenv with interpreter C:\Program 
Files\Autodesk\Maya2018\bin\mayapy.exe
PYTHONHOME is set.  You *must* activate the virtualenv before using it
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\virtualenv.py", line 2328, in <module>
    main()
  File "c:\python27\lib\site-packages\virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "c:\python27\lib\site-packages\virtualenv.py", line 925, in 
create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "c:\python27\lib\site-packages\virtualenv.py", line 1145, in 
install_python
    site_filename_dst = change_prefix(site_filename, home_dir)
  File "c:\python27\lib\site-packages\virtualenv.py", line 1036, in 
change_prefix
    (filename, prefixes)
AssertionError: Filename C:\Program 
Files\Autodesk\Maya2018\bin\python27.zip\site.py does not start with any of 
these prefixes: ['C:\\Program Files\\Autodesk\\Maya2018\\Python']


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/8a2a501e-7e5a-42d3-b16f-3041f924771c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to