I have tried installing spacy, but it is throwing the below error:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft
Visual C++ Build Tools":
http://landinghub.visualstudio.com/visual-cpp-build-tools
I don't want to install Visual Studio. Is there other way to resolve this?
At the moment, installing spaCy requires a compiler. On Windows, this is included in the Visual C++ Build Tools. (Not to be confused with Visual Studio – you definitely don't need the whole thing.)
If you install spaCy from conda, you should be able to install binary wheels, which don't require a compiler:
conda install -c conda-forge spacy
Providing binary wheels for pip is definitely on the spaCy roadmap – you can follow the discussion and work in progress in this thread.
I stumbled upon the same thing but however managed to do it without MS Build Tools. However the process requires a bit of manual effort, but that's worthy if you don't want to waste space for MS Build Tools.
Visit Unofficial Windows Binaries for Python Extension Packages. Here you can get many binary wheels of a number of python packages for various python versions and both for 32/64 architectures.
Next search and download ujson, cymem, murmurhash, preshed, cytoolz, thinc and finally spaCy.
Install each wheel in the downloaded order using pip install some-package.whl
Hopefully spaCy will be installed successfully. If not, please leave a comment and I'll try my best to help you out.
Related
when trying to install packages such as wordcloud, I get the error message
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/. When following the link, the installer proposes many different options. Just selecting the C++ requires almost 7GB.
Could you help me choose the bare minimum options required to install wordcloud? Indeed I have a small config, and would rather avoid using so much space for a small package (and for the moment, I don't plan using Visual Studio except for that matter). Thanks!
Have you followed the information in the instruction for setup with Python found here?
It indicates that you should update setuptools pip install --upgrade setuptools before doing anything else.
I have a severe compability issue with a Pycharm PyQt5 project that I cannot solve:
Problem Description:
I ran into a compability problem when I try to install PyQt5 site packages in my Pycharm editor.
The strange thing is that I could install PyQt5 and used it before in another Pycharm Project about 2 months earlier.
Both projects have two different virtual environments, both created by Pycharm when creating a new environment.
Screenshot of installed packages of the old, working venv:
Screenshot of installed packages of the new, broken venv:
What I tried to narrow down the error:
I checked if PyQt5 is still installed in my Python:
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\mauser\appdata\local\programs\python\python38-32\lib\site-packages (from PyQt5) (12.8.1)
The Error Log shows that PyCharm fails to install PyQt5-sip into the new virtual environment
Next, I updated both, globally, and locally (in the new project venv), pip and setuptools
The error log then told me that it needs Microsoft Visual C++ 14.0 or higher, so I installed the newest version of VC building tools and also included the version that actually says version 14.00.
Then I installed / upgraded PEP517 since the end of the error log states:
ERROR: Failed building wheel for PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip which use PEP 517 and cannot be installed directly
It seems that when pip is trying to build PyQt5-sip inside the virtual environment, that somehow the VC+ buildtools fail?
"basetsd.h": No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe' failed with exit status 2
Finally, I made a new project and tried to install PyQt5 in this fresh virtual environment. It failed with the same error: PyQt5-sip cannot be built Anymore!
Conclusion:
Why did it work last time, when I installed, and used PyQt5 without any problems?
Why can I install just fine: PyQt5, sip, and Qt designer on my machine globally but suddenly not locally anymore?
Qt designer still works, pip tells me that PyQt5 is correctly installed globally!
There was a recent Windows 10 patch - was this the reason? Did I maybe not install the correct VC+ 14.00 distribution?
Can I simply copy the PyQt5 folder from the old venv without breaking anything to bypass this problem? (Did not dare to try this out yet)
The answer to this is:
A Win10 update corrupted some parts of the Visual C++ 14.00 package on my system.
So hopefully this may help some others.
I deleted every VC++ package I had previously installed and (once more) installed the essential VC++ buildtools 2019, build 16.9.5..
Optional Features chosen:
Core Tools and Test Package
MSVC 142
MSVC 140
C++ CMake Tools
Win10 SDK
It seems that you need to include the SDK package as well to make it work!
After having reinstalled cleanly these packages above, PyQt5 and namely PyQt5-sip are able to be built again!
I am new to Box2D, first of all I want to apologize for maybe trivial question.
I have understood that it is written in C++ but it can be used with various different languages. I need to use it with Python, ideally with MS Visual Studio 2017 (but Idle or Canopy will do).
I was able to build Box2D to Visual Studio but I do not know how to run it using Python, could you please help me (a step-by-step solution would be really appreciated).
Thank you very much
You can use PyBox2D which is a binding to original library.
There are prebuilt package but it is a conda package you can install it with 3 steps:
Install miniconda3. Download it from here
Create a new environment (named py34 here) and activate it:
$ conda create -n py34 python=3.4
$ source activate py34
Install Box2D from the repo author:
$ conda install -c https://conda.anaconda.org/kne pybox2d
If you want to build from source (library author only suggests if you want to latest features or if you want to help development) here is the guide
Disclaimer: These steps are taken from the github repo itself
So I am unable to install fasttext for python on windows. I followed the methods mentioned in this issue
When I enter python setup.py install, I get the following error:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
I tried using the wheel at https://www.lfd.uci.edu/~gohlke/pythonlibs/#fasttext. It does install a module, however the name of the module is fasttext unlike fastText that gets installed on Ubuntu following the method mentioned in Readme.md. Also the fasttext module that does get installed is unable to load a prebuilt model like wiki.de.bin. I get an error saying Cannot load ../fasttext/wiki.es/wiki.es.bin due to C++ extension failed to allocate the memory Relevant issue.
I have created an issue here, and am asking the same question here, hoping to get a faster response from this community.
With the help of #cgohlke comment above, I was able to install it for windows. Just go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#fasttext. Download the wheel depending on your version. pip install .whl file. It works now.
I had to create my environment with python=3.8. This allowed me to install fasttext on my pc.
Download Microsoft Visual C++ Build Tools and install MSVC v140 - VS2015 C++ Build Tools (v14.00). It’s located in the Individual components tab of Visual Studio Installer.
Then, pip install fasttext.
I am building an audio processing application in Qt and an installer through Inno Setup. Recently, a co-worker testing the application had difficulty running it because "VCOMP100.DLL" was missing. We had been through a few versions already and had not gotten the error, but I will include it in the installer anyways. However, my version of vcomp100.dll was in my system files - did that mean I should install it there? And so I wondered:
What kinds of libraries should my installer try to install in the system directory? On one hand, duplicated data is wasted data, but on the other hand, I'm nervous about messing with system files. I have ~5 types of libraries:
Very basic C/C++ runtime libraries (msvcp100, msvcr100)
Unicode support libraries (icudt51, icuin51, icuuc51)
OpenGL as part of Qt (libEGL, libGLESv2)
Qt-specific libraries (Qt5Core, Qt5Gui, Qt5Widgets)
Sound processing libraries (soxr, libsndfile, portaudio)
Can you explain what to install where, but more importantly, why?
Do not install these files directly.
Use bundled installers from companies which produce that libraries.
For example instead of copying msvcp100, msvcr100 use Microsoft Visual C++ 2010 Redistributable Package (x86 or 64bit: http://www.microsoft.com/en-us/download/details.aspx?id=5555) to install VC++ runtime files.
There may be another dependencies in your libraries and this package install everything required.
The installers can be run silently and it is more user friendly. If the runtime is already installed there is no problem if it is overwritten.
Check these topics for more info:
How to make vcredist_x86 reinstall only if not yet installed?
InnoSetup - Check if visual studio 2010 crt redist is installed, if not then run installer
I suppose this should be the same for Qt.