Message 1 of 2
Adding external virtualenv to maya PythonPath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I currently have maya working with some custom scripts, and I link them by editing the maya.env file and putting - PYTHONPATH = C:/custom_scripts
I now need some external python packages I need to be able to import in my scripts, and instead of just dropping those packages into my custom_scripts folder, I wanted to create a virtualenv, and then pip install everything I needed. I tried creating the custom_scripts folder as my virtual_env and then pointing to the site-packages folder in the PYTHONPATH in maya.env. That caused some errors. Would be the best way to create a virtualenv, and point it to my scripts and allow them to have access to all the pythonpackages i installed to this virtualenv?