Pycharm. Trouble installing numpy-mlk for Windows - numpy

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.

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!

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.

How to utilise pymssql after Upgrading from Python 3.4 to 3.7? Unable to remove error

My Python application uses the pymssql module to connect and edit SQL data in forms. I upgraded to Python 3.7 and I receive the following error:
"DLL load failed: %1 is not a valid Win32 appication."
I have the 64bit win32 version of Python 3.7. I can't seem to resolve this. Does pymssql work with Python 3.7?
I uninstalled and reinstalled both Python and pymssql to ensure I have latest version.
The fix was to completely unisntall Python 3.7 and pip, then delete the Python folder, and reinstall. I used the advanced install settings which puts Python in C:\Program Files. The only difference now is I need admin permissions to pip install/update etc but that's ok.

Error installing library of Scrapy in PyCharm

I can install other packages, but can't install Scrapy. I get the following errors:
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'lxml.etree' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
However, C++ is installed, which I installed numerous of times. I have x86 and 64 bit installations (not sure if it's 10.0) but I have 2013-2017 versions installed.
Please upgrade your pip by following command.
python -m pip install --upgrade pip
Then install Scrapy by following command.
pip install Scrapy
download latest twisted package and install with pip.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
after that install scrapy
In my case, I found that pywin32 was not installed...
So I did
download the latest Twisted package from https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
You want to use the amd64 if you have Windows 64 (regardless if it's an Intel processor or not)
You can use any browser for the download and copy/paste the file into the project folder of your current pycharm project.
Then in pycharm type this:
pip install Twisted-20.3.0-cp39-cp39-win_amd64.whl
(assuming that your package was Twisted-20.3.0-cp39-cp39-win_amd64.whl)
then proceed with:
pip install Scrapy

How to install lxml on Windows 8 64-bit with Python 3.4

Related Question 1
Related Question 2
[Error Log]
C:\Users\Hima\Documents\Installers\python\packages>python -m pip install lxml-3.4.4-cp34-none-win_amd64.whl
lxml-3.4.4-cp34-none-win_amd64.whl is not a supported wheel on this platform.
[Environment]
Windows x86 (64-bit)
Installed Visual Studio C++ 2014
Python 3.4
I use pip (or pip3.4.exe; built-in to Python 3.4) to pip install lxml
[Issues]
1. The lxml file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml shows as not supported.
2. In the following Package Index for lxml, there isn't a suitable lxml file for 64 bit and Python 3.4.
https://pypi.python.org/pypi/lxml/3.4.4
I have been struggling with this today. I found, elsewhere on stackoverflow.com, this two-part and quick solution, which resulted in python no longer complaining when I tried to use lxml:
Go to this repository and download a version which matches your Python installation (the version number, and 32- vs 64-bit. I use Python 3.5.1 64-bit, installed on Windows 10, so on that page, I chose lxml-3.6.0-cp35-cp35m-win_amd64.whl.
You say you use Python 3.4, so use a version that matches that (or maybe the one you already have).
There is some helpful information at the top of the page about which version of CPython the files are built against.
The output of python -v will also tell you which version of MSVC++ was used to build your version of the python executable.
This answer is useful for determining MSVC versions from the output of python -v (which contains a build number instead of a version number).
My download directory is d:\Downloads. Python must be in your PATH environment variable for the next step to work. Use a command like the following, changing "D:\Downloads" to the pathname to your download directory. Then, at a DOS prompt, type:
python -m pip install "D:\Downloads\lxml-3.6.0-cp35-cp35m-win_amd64.whl" lxml-3.6.0-cp35-cp35m-win_amd64.whl
My config:
Python 3.5
Windows 10
Downloaded lxml-3.6.0-cp35-cp35m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
Copy this file to: c:\Program Files\Python35\
first in cmd line:
c:\Program Files\Python35>py -m pip install --upgrade pip
Then in cmd line:
c:\Program Files\Python35>py -m pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl
And it's done