Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Created August 19, 2016 06:35
Show Gist options
  • Save stlehmann/b99d9d32731cbd1311ce949498137c1c to your computer and use it in GitHub Desktop.
Save stlehmann/b99d9d32731cbd1311ce949498137c1c to your computer and use it in GitHub Desktop.
Batch script for creating a virtual environment with Anaconda containing PyQt5 and dependencies. Note: PyQt5 must be installed in the root environment.
@echo off
echo Creating new conda environment with PyQt5 installed...
conda create -n %1 python pyqt5 -y
echo Copying Qt binaries in virtual environment...
cp -R c:\miniconda3\Lib\site-packages\pyqt5\Qt c:\miniconda3\envs\%1\Lib\site-packages\PyQt5\
echo Activating new virtual environment...
activate %1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment