Debian package related modules. This is a collection of modules that are for dealing with Debian related data. Each module is documented with it How to Set Up and Install Django CMS on a Debian 7 or Ubuntu 13. That module is needed for the setup. Module aus dem Python Package Index werden an. Why you should not use easy Python packages are a way of structuring Python. The post-install scripts should respect these. Ok after a lot of searching I decided to build Python from source, so I downloaded the compressed source tarball from the Python download page, now we need to install. However, it is possible to install a specific version, available from the Ubuntu distribution, with the apt- get command. We can check the names of Python (Ubuntu pre- built) available packages with the apt- cache command. However this way of installing additional Python versions can be a source of potential problems (conflicts with the original installed version of the OS distribution). Therefore be warned on this. To install the latest versions of Python from the source code, we can upload it from FTPPython by selecting the desired version number. Download the file . We must also determine and install dependencies for the wished Python version with the Ubuntu command apt- get build- dep. In addition, before compiling the new Python source code, we must also install readline. In the following example we proceed with the installation of the Python version 2. Python- 2. 7. 2. tgz. Python- 2. 7. 2. tgz. Resolving www. python. Connecting to www. In any case such an error would not prevent us to use this new Python version, freshly installed. Tip. GCC error and missing libraries at compilation. In case of any compilation error involving the gcc library (error: Setup script exited with error: command 'gcc' failed with exit status 1) or any error for missing libraries while trying installing third parties Python packages, such for example setuptools, there might have lacked specific libraries at the Python source code compilation. It's important therefore to make sure the installation of those Python dependencies are done before compiling a specific version X. X of the Python source code. We should also ensure that the library development readline is present. In most cases the following two lines of dependencies installation satisfy our needs: $ sudo apt- get build- dep python. X. X. $ sudo apt- get install libreadline- dev. How to protect the pre- installed Python of the OS distribution. It is important not to modify (or destroy) the Python version installed by the Ubuntu Linux distribution, because there are dependencies to be respected within the OS distribution itself. In addition to the above example making use of make altinstall instead of make install, there are many ways to install a new version of Python in a . By installing from the source code, each Python version would be entirely contained in a directory under /opt. If ever you want to delete the installed version, all what would be needed is to delete the corresponding directory and any related symbolic link. Let's install a new version of Python by starting with installation of needed dependencies first: $ sudo apt- get build- dep python. Python- 3. 2. 2. tgz. Python- 3. 2. 2. tgz. Resolving www. python. Connecting to www.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2017
Categories |