简体   繁体   中英

error when trying to run a code at pycharm and when typing pip at the cmd

I want to start with web development with python, django, react, javascript and when I download node.js at the windows PowerShell it showed me that its downloading python again and now when I want to run a code at PyCharm it is showing me this error:

Error running 'some new sobject': Cannot run program "C:\\Users####\\AppData\\Local\\Programs\\Python\\Python39\\python.exe" (in directory ""): CreateProcess error=2, The system cannot find the file specified

or when I'm typing pip at the cmd it is showing me this error:

Fatal error in launcher: Unable to create process using '"c:\\users????\\appdata\\local\\programs\\python\\python39\\python.exe" "C:\\Users????\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\pip.exe" ': The system cannot find the file specified.

I searched for some answers and nothing works should I redownload python?

as @Ruli said, it can be due to some special character in the File Name or a Folder, or it can be anything.

My suggestion is to move that whole folder that is default created by PyCharm, and move it somewhere like C:\\ , so it is easier to locate the file and run it.

or if you have any other drive like D:\\ or E:\\ , move it there and try to run the program from the Command Line.

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