Python Forum
Advice on Setting Up the Python Environment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advice on Setting Up the Python Environment
#1
I wonder if anyone can give me some general advice on how to get set up as some weird things are happening

1. If I drag and drop a .py file into the standard command window (the DOS prompt one) the file sometimes runs ok but sometimes throws an error

2. If I then type python at the command prompt so i get >>> instead of > then try to drag and drop the file I get a unicodeescape error

3. However, I also have PyCharm installed. Should I just run using this and ditch the above. Or is there a better IDE than PyCharm?

As you can probably tell, I'm a newbie to Python and just want to get set up the best way

4. Are there any other tips I should bear in mind or implement

Thanks in advance, Mark
Reply
#2
(May-15-2019, 03:28 PM)punksnotdead Wrote: 1. If I drag and drop a .py file into the standard command window (the DOS prompt one) the file sometimes runs ok but sometimes throws an error
Just stop that drag and drop stuff,use a better shell that cmd/powershell eg cmder.
(May-15-2019, 03:28 PM)punksnotdead Wrote: 2. If I then type python at the command prompt so i get >>> instead of > then try to drag and drop the file I get a unicodeescape error
Use a better interactive shell than IDLE or standard,eg ptpython (what i use) or IPython,with cmder get correct syntax color.
Also Juypter Notebook is nice to do interactive stuff in
(May-15-2019, 03:28 PM)punksnotdead Wrote: 3. However, I also have PyCharm installed. Should I just run using this and ditch the above. Or is there a better IDE than PyCharm?
Look at VS Code from start.
Quote:4. Are there any other tips I should bear in mind or implement
Basic install and Windows environment with pip.
Python 3.6/3.7 and pip installation under Windows
Python environment Windows
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing python packages in a virtual environment Led_Zeppelin 1 757 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Advice for installing python app from github ? Adi44 6 1,179 Aug-07-2023, 06:34 PM
Last Post: snippsat
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,248 May-10-2023, 02:13 PM
Last Post: Calab
  Python development environment standenman 3 1,605 May-04-2023, 07:24 PM
Last Post: snippsat
  A question about setting up Python JanOlvegg 1 568 Feb-20-2023, 10:21 PM
Last Post: deanhystad
  Python Scripting Environment jpotter0 1 1,705 Nov-19-2022, 03:07 PM
Last Post: snippsat
  Setting up new Python kernel for JupyterLab Desktop on M1 Mac daler6 0 1,254 Jun-20-2022, 03:45 AM
Last Post: daler6
  How do I link the virtual environment of that project to the 3.9.2 version of python? Bryant11 1 1,366 Feb-26-2022, 11:15 AM
Last Post: Larz60+
  Looking for advice on funstionality of python bradkernohan 1 1,292 Feb-21-2022, 09:26 PM
Last Post: Larz60+
  VS Code debugger using wrong Python environment topfox 0 2,493 Jun-09-2021, 10:01 AM
Last Post: topfox

Forum Jump:

User Panel Messages

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