Python Index Page 4
pip: module has no attribute main Error
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 4
New tutorials version!
We just release a new version of tutorials.technology using python pelican.
Python Index Page 4
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 4
Two Algorithms for Software Engineering Interviews
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 4
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 4
How to Convert Int to String in Python [5 Methods with Examples]
Learn 5 ways to convert int to string in Python: str(), f-strings, format(), % operator, and repr(). Includes examples and performance comparison.
Python Index Page 4
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
Python Index Page 4
Python3: ModuleNotFoundError No module named _sqlite3
We explain how to solve the common error -> ModuleNotFoundError: No module named '\_sqlite3' while using python3. Use sudo apt-get install libsqlite3-dev to fix the issue.
Python Index Page 4
Python: How to Parse String to a Number (Float or Integer)
We explain how to parse numeric expression like 3.144 to float or 42 to intefers using python.
Python Index Page 4
Python: Recursive File Search in Directories
How to search files and directories using python (recursively file search with python). Code examples for python 2 and 3.