element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog Setting up a Python Development Environment
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Workshopshed
  • Date Created: 22 Apr 2015 9:09 AM Date Created
  • Views 1458 views
  • Likes 4 likes
  • Comments 6 comments
  • python
  • enchanted_cottage
  • enchanted_objects
Related
Recommended

Setting up a Python Development Environment

Workshopshed
Workshopshed
22 Apr 2015

Since realising that I could do some of the hard work for interpreting the weather APIs in Python I thought I'd check out my options for IDEs. I've been brought up for the last 20 years on Microsoft Visual Studio so I am used to having a featured IDE with projects, source control integration, debugger and intelli-sense.

 

I also did not want to work with copying files to the SD card manually.

 

I found PyCharm by the people who do Resharper that I use at work. There was a community edition which was a free license and seemed ideal for this project. The IDE also supports plugins for SCP (to sync the files to the Yun) and GitHub (my selected source control)

image

I used a simple script to find the version of Python installed

Import sys
print (sys.version)

 

2.7.3 (default, Sep 14 2014, 18:44:39)
[GCC 4.6.3 20120201 (prerelease)]

 

So I ensured that I also had Python 2.7 installed locally.

 

The GitHub functionality is already installed, when I opened up the project it detected that it was using Git. Because I was using the simple GitHub UI the Git.exe was not installed so I downloaded that and installed to the default folder and pointed PyCharm at that directory. The UI guided me through a commit, merge and push to get my code changes synced up as I'd made changes to the same file on two different machines.

 

To sync files using SCP a plugin is needed.

image

This also needs to be configured with the IP address of the Yun which I've made sticky via my router.

 

I did not have much to debug but the debugger seemed fairly straightforward, running code without debugging is also straight forward.

 

There seemed to be quite a lot on the menus so I've removed some of the plugins that I don't think I'll be using.

 

It seems to be a good platform to work with and a low learning curve. I'll keep you updated if I find any problems with the workflow or use of the tool.

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 10 years ago +5
  • Jan Cumps
    Jan Cumps over 10 years ago +2
    This will also be usable on the sama5d4 board. I just checked and this is the outcome: root@sama5d4-xplained:~# python -V Python 2.7.3 So now that we have an image that has both SCP and python support…
  • DAB
    DAB over 10 years ago +1
    Interesting product. I will have to take a look at the PyCharm IDE. Thanks DAB
  • Workshopshed
    Workshopshed over 10 years ago

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago

    There's an update for PyCharm

     

    https://www.jetbrains.com/pycharm/whatsnew/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 10 years ago

    Interesting product.

     

    I will have to take a look at the PyCharm IDE.

     

    Thanks

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago in reply to michaelkellett

    2.7.3 is what's installed on the Yun and the opkg package manager does not provide an option for a newer version. I've tried compiling 2.7.9 on the Yun and run into loads of issues, I've not tried compiling 3.x so that might be better or could have the same issues.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 10 years ago

    Is there any special reason why you are using 2.7 rather than 3.x ?

     

    I'm only a (very) occasional Python user and I've already hit 2/3 issues more than once - so I'm really interested in why you would start  a new project with 2.7.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube