简体   繁体   中英

error in running python program in PyCharmIDE

[Unable to create process using 'C:\Users\MY HP\AppData\Local\Programs\Python\Python310\python.exe "C:/Users/MY HP/PycharmProjects/helloworld/tbjsrton.py"']

whenever I try to run a python program in the PyCharm IDE it is showing this error. I have installed the python10 files in the default folder recommended by the python setup.

在此处输入图像描述

Make sure that you set the environmental variables of the python and create a virtual environment. You can edit the configuration and the easy way to do it is by creating a new project and setting the environment as the following: 在此处输入图像描述

or edit the configuration

在此处输入图像描述

or you can add an interpreter as the following

在此处输入图像描述

To set the path of python, find environmental variables and add the path as the following:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM