Python Script Works In Pycharm But Throws Path Errors In Windows Cmd
I have a python script that runs succesfully from within pycharm terminal, setup as a virtual enviroment, but not from the windows terminal. I haven't set any windows enviroment va
Solution 1:
By default, PyCharm's current directory refers to the path to your PyCharm sandbox. If you've placed any files there, they'll load without any issues in PyCharm.
From the command line, however, you'll either need to specify a fully qualified path (to where those files actually are), or you'd need to move them to the directory from where you run your script.
Post a Comment for "Python Script Works In Pycharm But Throws Path Errors In Windows Cmd"