gdal for termux(android paython) - gdal

I am using jupyter notebook for payrhon on my android phone by Termux.
I have a problem with installing "gdal" library.
please help me with proper commands.

I have tried this: "pip install gdal" then I got this: Command "python setup.py egg_info" failed with error code 1 in /data/data/com.termux/files/usr/tmp/pip-install-nlshm77k/gdal/

"pkg install gdal" worked for me.

Related

When I open the nvim init.vim file, this error comes for Neoclide coc.vim

I get this error when I try to open the init.vim file for neovim, for neoclide coc.vim. Any solutions? in WSL(Ubuntu)
[coc.nvim] Error on execute :pyx command, ultisnips feature of coc-snippets requires pyx support on vim. use :CocOpenLog for details
Enter command pip install pynvim in your command line. It helped me. And before this you should have python on your PC.
you choose correct version of python in init.vim
let g:python3_host_prog="/usr/bin/version python"
example
let g:python3_host_prog="/usr/bin/python3.10"
I tried with installing pynvim and also have the latest pip (21.3.1). My vim version is 9.0 and compiled it from scratch.
But while searching the features included with vim, I realised that I had not included python. After following this answer, I enabled python while compiling vim. My issue has been resolved.
I had to upgrade pip first, then run pip install pynvim.
Most likely you default python install broke for some reason on you machine (was the same for me).
Try running the python command from the terminal.
If you get command not recognized than you know this is the problem.
Reinstalling python or
set the python the python path that vim uses to an installed python version that works
let g:python3_host_prog="/usr/bin/version python"
Assuming you have python3 installed.

"pip install models": Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

For a deep-learning project, I was trying to import the 'models' library. But it's not installed on my colab notebook. So, I tried pip install models to install the library but it shows error which is as on the screenshot. I've also read somewhere that the library is renamed as 'pymodels'. I've also tried it but still not working.
I would be thankful for any help you can provide.

Install problems with spacy under Windows 10

I get the following errors https://pastebin.com/0veYUYuh
Whenever I use:
'pip install spacy'
Please help?

Can you use rmagic (rpy2) in google colaboratory?

I know google colaboratory doesn't yet support an R kernel. What about rmagic? Can I use rpy2?
I tried :
!pip install rpy2==2.8.6
And got :
Collecting rpy2==2.8.6
Using cached https://files.pythonhosted.org/packages/32/54/d102eec14f9cabd0df60682a38bd45c36169a1ec8fb8a690bf436cb6d758/rpy2-2.8.6.tar.gz
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command 'R' in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-3bSiiD/rpy2/
I'm guessing that it isn't working because R isn't installed on whatever cloud machine this notebook is running on, and that it probably isn't possible to install it. But I'm hoping I'm wrong and someone may know of a work around.
OK, I answered my own question. I thought for sure this would fail, but tried anyway:
!apt-get update
!apt-get install r-base
!pip install rpy2==2.8.6
And it worked!

python Beautifulsoup4 package installing

I've trying to install beautifulsoup4 package for my mac.
I was following the video (https://www.youtube.com/watch?v=gM-L1rvTpwU).
I got up to where it's 1:40 in the video to upgrade the version of beautifulsoup.
But my terminal throws the error and this is how it looks:
could you guys help me how to fix this problem?
Thank you in advance!
try
sudo pip install BeautifulSoup4
as unix based system needs superuser permission to write unless you are installing it in a virtualenv