Installing Python2 and Python3 on a single computer and executing python files in Pycharm a solution that "system cannot find executable files" __python

Source: Internet
Author: User

Now, Python2 and Python3 are still in maintenance, due to the difference between the two, in many cases also need to install both on the same computer at the same time.

Specific installation and the installation of Python2 and Python3 on the basis of the implementation of the corresponding installation of Third-party packages can refer to this link

Follow the linked blog solution, after installing the Third-party package, create a new project in Pycharm and execute the Python code as shown in the illustration.


The pink box in the figure below reads:

Error Running One:

Cannot run program, "D:\Python\pythonInstall\python.exe" (in Ditectory "F:\python Workspace\python2\firstt\tt"): CreateProcess error=2, the system could not find the specified file.

From the above error can be seen, the system cannot find Python2.exe. That is because, just in order to successfully install the third party package, in order to enable the computer to accurately distinguish between the python2 to install or Python3 to install, the Python.exe renamed to Python2.exe.

Know how the problem is caused, natural is good to solve, we just have to Python2.exe renamed as Python.exe on the OK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.