Python Forum
switching from pycharm to sublime issue - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: switching from pycharm to sublime issue (/thread-27495.html)



switching from pycharm to sublime issue - Drifter - Jun-08-2020

hi everyone.

I have recently started to learn the very basics of coding in Python through Youtube videos. I had been using PyCharm with no issues. , I recently decided to buy a book on the subject. To Follow along with this book they suggested Sublime. I installed it with no problem but when i tried running the hello world program
hello_world.py, i get this error;

file"/Users/myname/desktop/python_work/hello_world.py", line 1, in <module>

I have tried deleting the file and restarting the process again. No luck. I also tried the new build thinking i
Python was not communicating with Sublime.

Python3.sublime-build
"cmd": [python3","-u","$file"]

Still I get this error. Is it possible that it's because I still have Pycharm on my computer? Can Python only interact with one text editor?


I know this is probably obvious, but please let me know what I have missed.

also, could I just try to follow this book using PyCharm instead?

Thanks in advance

Drifter


RE: switching from pycharm to sublime issue - deanhystad - Jun-08-2020

Have you ever run python outside of PyCharm? It could be something as simple as python not being included in the path variable. What happens if you just type "python" (or maybe "python3") in a CMD window? It should respond with something like:
Output:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>



RE: switching from pycharm to sublime issue - Drifter - Jun-09-2020

deanhystad

Thank you for responding.

I’m on a MacBook Air

I started out using a tutorial and downloaded Python. Instructor said to use PyCharm. I was halfway through the basic concepts when I decided I could benefit by another source such as a book. Sometimes it’s practical to learn the why instead of just going by instruction. This particular book was using sublime which seems to function very differently. As for your suggestion;
I entered python3 into Terminal and got this in return

Python 3.8.3 (v3.8.3:6f8c8320e9, May 13 2020, 16:49:34
[clang 6.0 (clang-600.0.57)] on darwin
Type”help”. “Copyright”, “credits” or “license” for more information.

Any help would be greatly appreciated.

Thanks in advance

Driftsr
>>>