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

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.

Related

Tensorflow-Text in Miniconda

I am trying to install tensorflow-text through miniconda in Spyder. I have managed to install other modules in Spyder such as tensorflow itself, pandas, scikit-learn, etc. However, using the same command as all the other installations (with the specific package name replaced by tensorflow-text)
conda install spyder-kernels tensorflow-text -y
I continue to get the same error whenever I try to install tensorflow-text:
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow-text
followed by a suggestion to search for the package on anaconda.org. As such, I searched for the tensorflow-text package on the anaconda site and found one, albeit for linux, by rocketce. Attempting to run the commands listed under the tensorflow-text installation instructions on that webpage also yielded the same error.
At first, I tried to install tensorflow-text through pip and was able to successfully run the command
pip install -U tensorflow-text==2.10.0
which seemed to install tensorflow-text. But I could not figure out how to access it or if it was correctly installed. Specifically, I am looking to use tensorflow-text in the Spyder IDE. I was able to get tensorflow working in the IDE, but not the specific tensorflow-text.
I am using a Windows 10 system; I could not find anything on the anaconda site for Windows 10. I am rather inexperienced (if you could not already tell from the nature and description of the problem), so patience and clear explanations are appreciated. Thanks in advance!

Upgrade pip install on Win10 box

I'm trying to upgrade pip install to 22.3. I keep getting this error, "default to user install because normal sit-packages is not writeable."
I'm at the cmd prompt in win10 trying to install.
This came about because I'm trying to install pypdf2 and this won't install to python that's in my environment path. So I'm stumped.
Thanks for any help.
Unfortunately, I just uninstalled conda & the vanilla python. I reinstalled just plain python for now.
I think originally I did not use venv properly and maybe my conda & vanilla pythons could have been mixed? Not sure. But my vanilla 3.11 is working now and I do some more work.
Thanks for the help.
You can try to install it with the --user flag, which will install it to your user directory instead of the system directory. This is not recommended, but it will work.
pip install --user pypdf2

I am failing to install Selenium module via command line

I use Ubuntu 16.10. I tried installing Selenium module of python via the command - sudo pip3 install -U selenium. But, I am not able to install it. It is giving an unexpected error. I am sharing the screenshot of the terminal here. Please help!
Please click here for the screenshot
If you are using Ubuntu, I'd suggest checking in the package manager as it may already be there. I'm on Mint and it was already there when I loaded python (2.7 also).

Pycharm. Trouble installing numpy-mlk for Windows

I'm new to Python and am trying to install numpy-mkl from Pycharm. I get the following error even though I upgraded 'pip' to version 8.1.1 from Pycharm.
Thanks!
http://i.stack.imgur.com/ipvJw.png
i don't believe numpy-mkl is in the repositories, so it can't be installed the way you're doing it.
if you're running windows, download the appropriate Numpy+MKL .whl file from Here. For me, on cpython 3.5 64-bit, the current file is numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl
then run:
pip install "numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl"
i'm not sure if the .whl file needs to be in the same folder as your python installation or pip.

Installing gdal-config on my linux

I search the entire net could not find a guide to get gdal-config.
I have yum but yum does not have gdal-config, i already installed gdal.
I just need to be able to do this on shell - gdal-config and not get a command not found error.
My distro is Fedora. I don't have apt-get.
You probaby have "yum" instead of "apt-get" on Fedora. Try..
yum install gdal gdal-devel
I'm running Ubuntu 16.04, so I use apt-get instead of Yum. But I had trouble with gdal and gdal-develop. This is command that worked for me:
sudo apt-get install gdal-bin libgdal-dev
I found the package names from here:
https://launchpad.net/ubuntu/+source/gdal
I had a similar problem, that is "gdal-config" was missing. I could solve it by installing the development packages. So you could try installing gdal-dev.
As far as I know, the GDAL utilities, including gdal-config, are part of the download package that you can find here: http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries. They link to a Fedora version. If you installed apt-get, you could find it by looking for GDAL directly.