Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error running 'main'
#1
Error running 'main': Cannot run program "C:\Users\David Thomas\Desktop\pyton\venv\Scripts\python.exe" (in directory "C:\Users\David Thomas\Desktop\pyton"): CreateProcess error=2, The system cannot find the file specified
Reply
#2
Did you check if there is a "C:\Users\David Thomas\Desktop\pyton\venv\Scripts\python.exe file? Do you expect there to be a file at this location? Creating a virtual environment in a desktop folder is odd. If the virtual environment was created to a different folder and moved to the desktop it stops workig.

Please describe what causes this message to appear.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas - error when running Pycharm, but works on cmd line zxcv101 2 3,595 Sep-09-2024, 08:03 AM
Last Post: pinkang
  error "cannot identify image file" part way through running hatflyer 0 2,678 Nov-02-2023, 11:45 PM
Last Post: hatflyer
  Error when running kivy on python janeik 8 9,357 Jun-16-2023, 10:58 PM
Last Post: janeik
  Getting error when running "MINUS" between 2 databases marlonbown 4 3,062 Nov-10-2022, 05:49 AM
Last Post: deanhystad
  Python-for-Android:p4a: syntax error in main.py while compiling apk jttolleson 2 6,490 Sep-17-2022, 04:09 AM
Last Post: jttolleson
  Error while running code on VSC maiya 4 8,279 Jul-01-2022, 02:51 PM
Last Post: maiya
  Error when running a matplot lib example aurelius_nero 3 12,502 Apr-24-2022, 01:24 PM
Last Post: Axel_Erfurt
  Error when refering to class defined in 'main' in an imported module HeRo 2 4,270 Apr-13-2021, 07:22 PM
Last Post: HeRo
  Keep getting Session management error when running imshow in pycharm pace 0 3,363 Mar-25-2021, 10:06 AM
Last Post: pace
  Error when running script on startup in Linux NoahTheNerd 0 3,005 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020