The Python interpreter name specified in the Name field, becomes visible in the list of available interpreters. To change the interpreter name, select the target interpreter and click. When the Associate this virtual environment with the current project checkbox is enabled, the interpeter is available only in the current P圜harm project. You can modify the path to the Python executable in the Interpreter path field. You can choose to enable the automatic uploading of files to the server:Ĭlick Auto-upload files to start uploading on the next save.Ĭlick Sync and auto-upload files to immediately sync the files and upload them on every save in future.Įxpand the list of the available interpreters and click Show All. Mind a notification balloon in the lower-right corner: When you change the project interpreter and select an SSH interpreter, you might need to synchronize the local content with the target server. When P圜harm stops supporting any of the outdated Python versions, the corresponding Python interpreter is marked as unsupported. Then select the desired interpreter in the left pane and click OK. Press Control+Alt+S to open the IDE settings and then select Project | Python Interpreter.Ĭlick the drop-down and select the desired Python interpreter: Switch the Python interpreter in the IDE settings Just click it and select the target interpreter: It is the most convenient and quickest way to switch the Python interpreter. The Python Interpreter selector is located on the status bar. Switch the Python interpreter using the Python Interpreter selector Configuring an existing Python interpreterĪt any time, you can switch the Python interpreter either by using the Python Interpreter selector or in Settings. Python interpreters can be configured for a new project or for the current project (you can create a new interpreter or use one of the existing interpreters). For example, you can create one virtual environment based on Python 3.6 to develop Django applications and another virtual environment based on the same Python 3.6 to work with scientific libraries. This is helpful when you need to create different virtual environments for developing different types of applications. You can create several Python interpreters based on the same Python executable. So, before configuring a Python interpreter, you need to ensure that you've downloaded Python and installed it in your system and you're aware of a path to it. When you configure a Python interpreter, you need to specify the path to the Python executable in your system. With P圜harm Professional, you can also configure interpreters to execute your Python code on remote environments by using SSH, Vagrant, Docker, Docker Compose, or WSL (only for Windows). A virtual environment consists of a base interpreter and the installed packages. You can also create a Virtualenv, pipenv, Poetry, or conda virtual environment. You can use a system interpreter that is available with your Python installation. To work with your Python code in P圜harm, you need to configure at least one Python interpreter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |