Skip to content

Instantly share code, notes, and snippets.

@phausamann
Created November 16, 2018 08:29
Show Gist options
  • Save phausamann/48027bb918ea9dd81184bba9fafffd87 to your computer and use it in GitHub Desktop.
Save phausamann/48027bb918ea9dd81184bba9fafffd87 to your computer and use it in GitHub Desktop.
Launch PyCharm from within conda environment
:: Launch PyCharm from within conda environment
:: This will ensure that all necessary environment variables are set.
:: Modify the paths and environment name for your installation, if necessary.
:: This configuration is for PyCharm x64 installed with JetBrains Toolbox and
:: will launch the latest installed version.
@set condaroot="%userprofile%\Anaconda3"
@set pycharmroot="%localappdata%\JetBrains\Toolbox\apps\PyCharm-P\ch-0"
@set env=base
@set binary=pycharm64
@cd %pycharmroot%
@for /d %%D in (*) do @set f=%%~nxD
@cd %f%\bin
@call %condaroot%\Scripts\activate.bat %env%
@start %binary%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment