ImSwitchInstallWindows
ImSwitch Installation on Windows
Step 1: Install Visual Studio Code (VS Code)
- Open a web browser and go to the VS Code download page.
- Download the Windows Installer.
- Once the download is complete, locate the installer and double-click to run it.
- Follow the on-screen instructions to complete the installation.
Step 2: Install Miniconda
- Open a web browser and navigate to the Miniconda download page.
- Download the Windows installer for the 64-bit version of Miniconda.
- Run the installer by double-clicking the downloaded file.
- Follow the installer prompts to install Miniconda to a directory of your choice (e.g.,
C:\Miniconda3
). - During installation, ensure that the option to "Add Anaconda to my PATH environment variable" is selected.
Step 3: Clone Necessary Repositories
- Ensure you have installed GIT for windows
- Open the Command Prompt:
- Press
Win + R
, typecmd
, and press Enter.
- Press
- Navigate to your preferred directory where you want to clone the repositories (e.g.,
C:\Users\<YourUsername>\Downloads
):cd C:\Users\<YourUsername>\Downloads
- Clone the required repositories:
git clone https://github.com/openUC2/UC2-REST
git clone https://github.com/openUC2/ImSwitch
git clone https://gitlab.com/bionanoimaging/nanoimagingpack
Step 4: Install ImSwitch and Related Packages
- Open the Command Prompt.
- Create a new Conda environment named
imswitch
with Python 3.10:conda create -n imswitch python=3.10
- Activate the
imswitch
environment:conda activate imswitch
- Navigate to the ImSwitch directory and install it:
(The e just states to install the packages in editable mode)
cd C:\Users\<YourUsername>\Downloads\ImSwitch
pip install -e . - Repeat for UC2-REST and nanoimagingpack:
cd C:\Users\<YourUsername>\Downloads\UC2-REST
pip install -e .
cd C:\Users\<YourUsername>\Downloads\nanoimagingpack
pip install -e .
Step 5: Install Camera Drivers for Daheng Cameras
- Download the galaxy camera sdk for windows here https://www.get-cameras.com/requestdownload
- Double-click on the installation executable file (
Galaxy_camera.exe
) to run it. - Follow the on-screen instructions to complete the installation.
Step 6: Clone ImSwitch Configuration and Set Permissions
- Navigate to the Documents directory using the Command Prompt:
cd C:\Users\<YourUsername>\Documents
- Clone the ImSwitch configuration:
git clone https://github.com/openUC2/ImSwitchConfig
Step 7: Start
conda activate imswitch
imswitch
Problems and Solutions
Very likely, there will be a PyQt issue.
Try:
pip install PyQt5 --force-reinstall
Congratulations! You have successfully installed ImSwitch and related dependencies on Windows.