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
  I cannot create a virtual environment on visual studio code using python Willem_Aucamp316 2 4,162 Nov-27-2024, 02:20 PM
Last Post: menator01
  Python 3 advice Shrubbery 0 643 Oct-10-2024, 04:39 AM
Last Post: Shrubbery
  Trouble Setting Up Selenium with FireFox (Python 3 on Windows 10)) gw1500se 5 6,910 Oct-07-2024, 06:41 PM
Last Post: AlluminumFoil
  Need help setting up trusted root ca in virtual environment dstempfley 0 1,324 May-31-2024, 03:14 PM
Last Post: dstempfley
  Installing python packages in a virtual environment Led_Zeppelin 1 1,711 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Advice for installing python app from github ? Adi44 6 4,013 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 5,333 May-10-2023, 02:13 PM
Last Post: Calab
  Python development environment standenman 3 3,756 May-04-2023, 07:24 PM
Last Post: snippsat
  A question about setting up Python JanOlvegg 1 1,185 Feb-20-2023, 10:21 PM
Last Post: deanhystad
  Python Scripting Environment jpotter0 1 3,298 Nov-19-2022, 03:07 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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