noobatlantic.blogg.se

Configure python interpreter pycharm windows
Configure python interpreter pycharm windows






configure python interpreter pycharm windows

If this does happen you can still proceed with adding that interpreter, but it won't work until you set the necessary environment variables. Otherwise the interpreter executable can't even start.

#CONFIGURE PYTHON INTERPRETER PYCHARM WINDOWS WINDOWS#

This is because Windows uses the Path environment variable to search for DLLs, and the correct paths need to be added in order to find the Cygwin DLL, among others. If you didn't set the Path environment variable correctly, then you'll get an error here (it might show "Permission error" or something like that). If you set up the correct environment variables, P圜harm should be able to successfully execute Sage's Python interpreter, and also populate the list of packages installed for that interpreter, and you'll see something like this: Then from the list of interpreter types, select "System Interpreter":īrowse to the python2.7.exe executable under C:\Program Files\SageMath 8.1\runtime\opt\sagemath-8.1\local\bin (or you can just copy this path directly into the file browser): You might have something different shown here for an already existing interpreter.Ĭlick the little gear icon in the top-right corner next to the drop-down list of available interpreters, and select "Add Local" from the menu. In the settings page select "Project Intepreter"-this is where you can add additional interpreters for use across projects. From the Welcome screen click on the little "Configure" gear and select "Settings" from the menu: Then we need to correctly add Sage's Python interpreter to P圜harm's list of available interpreters. There are likely some others that should be set as well, but that was the bare minimum I found necessary to get Sage's Python interpreter working happily in P圜harm. The console commands to set the necessary variables are: setx Path "%Path% C:\Program Files\SageMath 8.1\runtime\opt\sagemath-8.1\local\lib C:\Program Files\SageMath 8.1\runtime\opt\sagemath-8.1\local\bin C:\Program Files\SageMath 8.1\runtime\bin C:\Program Files\SageMath 8.1\runtime\lib\lapack" This can be done through a GUI in Windows, or via the cmd console. The easiest way I found to go about this is to first set some permanent environment variables in your Windows environment.








Configure python interpreter pycharm windows