Problem installing spaCy in windows 10 with pip - python-3.x

I tried to install spaCy on windows 10. I have python 3.7.0, also I install Microsoft Visual C++ Build Tools 14.0.
When I ran the following command:
pip install -U spacy
I got the following error:
Generating code Finished generating code LINK : fatal error LNK1158:
cannot run 'rc.exe' error: command 'C:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe' failed with
exit status 1158
Any idea is there something I missing?
Thank you all in advance!

Either follow theses steps Python, installing clarifai --> VS14.0 link.exe failed with exit status 1158
or install miniconda and then run conda install -c conda-forge spacy

Related

Installed C++ build tools via Visual Studio Installed, but pip install pycocotools still give me error

Installing pycotools via pip install gives the error
error log of failing to install pycotools
I have installed C++ build tools via Visual Studio Installed
image of installed C++ build tools
But, when I pip install pycocotools,
It still gives the error
error log of failing to install pycotools
Do not try for installing pycocotools(original) on Visual Studio.
if you want to do that, you must install clone of pycocotools from this: https://github.com/philferriere/cocoapi
Thx to MAHDI SOLTANI PAKDEL's solution,
I have found an alternative solution: installing pycocotools won't require C++ build tools.
conda install -c conda-forge pycocotools
conda install -c conda-forge/label/gcc7 pycocotools
conda install -c conda-forge/label/cf201901 pycocotools
conda install -c conda-forge/label/cf202003 pycocotools

error when trying to install supplychainpy python package

I have been trying to install the supplychainpy python package and have been getting the following error in the cmd terminal:
Error:
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe' failed with exit code 2
The python version I am using is 3.8.8 and I have tried the following resolutions:
creating a virtual environment in anaconda
uninstalling and reinstalling python and MSVC Build Tools
using different python versions
repairing/updating pip and setup tools
My coworkers have gotten the package installed with no issues but I have had no luck. Let me know if anyone else has had this issue/how to solve it.

My brownie won't install. it's telling me "Microsoft Visual C++ v14.0 or more required" i have installed a new vs studio redist 2017 c++ package

C:\Users\ACER\Desktop\Blockchain\Burrockuchen projects\BrownieSimpleStorage> pipx install eth-brownie
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\ACER.local\pipx\logs\cmd_2022-08-06_15.50.29_pip_errors.log
pip failed to build packages:
bitarray
cytoolz
lru-dict
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
error: legacy-install-failure
Error installing eth-brownie.
C:\Users\ACER\Desktop\Blockchain\Burrockuchen projects\BrownieSimpleStorage>
"Download and install the Build Tools for Visual Studio, and then install the C++ build tools. Once installed, run the following command in your terminal. Here is a video tutorial showing you how to install the build tools."
Then do:
pip install --upgrade setuptools
pip install eth-brownie
Reference = https://chain.link/bootcamp/brownie-setup-instructions

experiencing error while installing flair

Im experiencing this error while running the command pip install flair
building 'gensim.models.word2vec_inner' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for gensim
I am running this command inside a conda environment. I was able to successfully install flair before. then i uninstalled miniconda, installed it on a separate drive (on the same pc) and tried installing flair again, thus here we are.
any help on how to resolve this will be greatly appreciated.

How I can solve pyaudio installation problem in (python3.7 64bit)

when I am install pyadio through cmd there was genrate error that is
***Collecting pyaudio
Complete output from command "c:\users\this pc\appdata\local\programs\python\python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\THISPC~1\AppData\Local\Temp\
compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools***
But i am already install Microsoft visual c++ 14.0
When we try to install Pyaudio on Windows it gives us lots of dependencies errors.
The best solution i am able to figure out is use conda environment to resove this.
Once the conda environment is setup in Pycharm(IDE) i am using then we can simply install Pyaudio usign Pip command.
pip install PyAudio
Download and Install Anaconda3 using the link below:-
https://www.anaconda.com/products/individual
Hope this helps.

Resources