Skip to content

Instantly share code, notes, and snippets.

@alapini
Forked from phausamann/pycharm_conda.bat
Created March 5, 2019 05:17
Show Gist options
  • Save alapini/c6f577a4b0505664ee82abebd802779e to your computer and use it in GitHub Desktop.
Save alapini/c6f577a4b0505664ee82abebd802779e 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