Python Index Page 2

Mongoengine: How to use filefield for storing images and files

Check here an example on how to use mongoengine filefield. Mongoengine FieldField uses GridFS to store the files, check here how to use it in your project.

Python Index Page 2

How to check internet speed on a Linux server from the terminal using cli?

We explain how to use speedtest python project to check internet speed via the terminal. We will also explain how to save historical network speed on your linux server with a very cron line. Finally we explain how to plot the generated csv data.

Python Index Page 2

Python: pip is broken. _internal module cannot be imported

The error is common after you execute "pip install pip -U" and you will see the error "ImportError: No module named _internal" everytime you execute "pip". One solution is to change the import on the pip file: **from pip import main**, change that line with **from pip._internal import main**. Check here for alternative solutions to this error.

Python Index Page 2

python pip: AttributeError: 'module' object has no attribute 'main'

If you are using pip and get the following import error: AttributeError: 'module' object has no attribute 'main' you can import main from pip._internal. Check here for the complete solution

Python Index Page 2

New tutorials version!

We just release a new version of tutorials.technology using python pelican.

Python Index Page 2

Solved! Fiona 1.7.1 missing GeoPackage & FileGDB

If you are missing GeoPackages or ESRI FileGDB as suuported drivers, execute: pip install -I fiona --no-binary fiona. This will compile the source of Fiona and link to your installed libraries. Check here for full description of the problem.

Python Index Page 2

Two algorithms you must know for a software engineering interview

If you are pareparing for a software interview there are two graph algorithms you must know: BFS and DFS. We will use python code for examples.

Python Index Page 2

OSX: Python anaconda error when installing pip

When you install pip with "conda install pip" and you got the error "CondaOSError: OS error: failed to link", try to delete the pip package from your anaconda. See here for full details on how to solve this issue.

Python Index Page 2

How to convert integer to string in Python?

Converting an integer to string in python is straighforward to do it. Just use the built in function str(). Here we explain with more details and example hot convertion from integer to string works.

Python Index Page 2

How to Call an external command with Python?

We show how to use python to call an external program or command. We show examples with python 2 and 3