![]() Setting up a proper environment for working is going to be important, and can be confusing at first, because you might think you are ready to write with it simply installed on your machine. One of the great things about Python is that it is fantastically simple to get working this simplicity is also one of the pitfalls. If you are missing one or the other, or if you find you are running an older version, just install the newest: sudo apt-get install python *or* python# Environments matter Just remember which one your machine defaults to, and which one you are wanting to target. There’s a whole different article to be written about changing your default Python install, so I’m going to avoid that discussion here. This will be important because it will determine how we run our Python code from whatever interpreter we end up using. ![]() In my case, the default Python install is 2, so I type: python3 -versionĪnd get back the appropriate Python 3.x.x response. Will return either Python3.x.x or Python 2.x.x.ĭepending on what you get back, I’d also suggest trying the other release as well, by appending that number to the python command. So open a terminal and check what you have: python -version The real issue is finding out which Python version you have installed by default, and which Python version you are planning on programming with. In fact, it’s probably a large part of how your package installer works. ![]() Great news, Python’s already thereĪs a *nix user (because this applies to OsX as well) you already have some version of Python installed on your system. Recently, Python released a new version of their installers that have made that process nearly painless, but that doesn’t mean you get the best development environment out of the box, so, in the spirit of a recent post on It’s FOSS about setting up a C++ environment, here’s how to do the same for Python. ![]() If you’ve ever tried to set up a Python development environment in Windows, you know how challenging it can be. ![]() Brief: This guide shows you how to set up Python environment on Linux and other Unix-like systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |