Created
November 16, 2018 08:29
-
-
Save phausamann/48027bb918ea9dd81184bba9fafffd87 to your computer and use it in GitHub Desktop.
Launch PyCharm from within conda environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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