Search code examples
pythonpippycharmdrive

Problem with installing Python in external drive


I am a beginner in Python and PyCharm. I had installed both Python and PyCharm in my D drive, instead of C. But then, I was facing some issues, so had to uninstall and reinstall them in my C drive. Now, when I use the pip command in CMD, it says

Fatal error in launcher: Unable to create process using '"D:\Program Files\Python\python.exe" "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Scripts\pip.exe" ': The system cannot find the file specified.

I tried looking for solutions but have given up. Does anyone have any suggestions?


Solution

  • This is because your path file is still leading to the pip in D: Go to path and change that to your C: directory for pip