4
HRT-713
6y

I use the Parrot OS linux distro and I think my built in python interpreter is broken, when I run a .py program from the command line, I get errors that I don't get when I run them in pycharm, why is this happening?

Comments
  • 1
    Without showing the kind of errors it would be hard to tell.
  • 0
    @AleCx04 The problem is that the errors look like regular errors you usually get in a python program and I can't seem to figure out why I am getting them.
  • 3
    Are both of the pythons the same major version? Maybe PyCharm is using python2 and cli uses 3
  • 0
    @ilikeglue I checked and they are both using the same version of python3
  • 0
    @Torbuntu I really don't know, when I check both say 3.6.4 so I think they might be the same
  • 2
    @HRT-713 why not just try a normal print hello world statement. That should help a little. Try: print "hello world" if it executes it's python 2 else python 3.
  • 1
    I could imagine that there are some ImportErrors, as PyCharm extends the sys.path a little.
    Could you please provide us with the error message though and mention me so I see it?
  • 2
    @drekhi12 @gamingfail123 I'm not sure what it was but after I woke up and booted linux, I got an update for 1292 packages, and after the update everything worked perfectly.
Add Comment