I am trying to install a python package pyphenomd in anaconda on my Windows 10. I have installed Microsoft Visual C++ 2015 and the GNU Scientific Library (GSL) package using conda.
I then tried installing pyphenomd using in the Anaconda Prompt
pip install pyphenomd
(Not using conda install since that gives a Packages Not Found Error.)
But I keep getting the following error.
Then
Installing collected packages: pyphenomd
Running setup.py install for pyphenomd ... error
Followed by another iteration of the above error. Finally ending with this message
Based on Cannot open include file: 'gsl/gsl_errno.h': No such file or directory message I am assuming the error is Visual C++ is not able to access the header files for gsl. I then reinstalled the gsl package from conda but that didn't help. So then I installed GSL using vcpkg following the procedure mentioned in here. This did not help either and I am still getting the same error. Installing GSL via cygwin also didn't help.
Now I don't know what to do. I am not even sure if the error is with the installation of gsl ?
Other similar questions that I found either didn't have any answers or the provided solutions weren't relevant.
I'm trying to get eye tracking on python. I've installed openCV and everything required except dlib. When I first tried it, It just went into a "Building wheel for setup.py" Loop. I've looked around on stackoverflow and I tried following This Tutorial to install it with homebrew, and I've tried using This to log all the errors. By doing this I see a lot of warnings, but it gets to about 98% before failing and trying again. Here's what I'm using:
MacOS Catalina Version 10.15.7
Visual studio 2019(although I don't know if that matters)
Python 3.8
I have CMAKE version 3.18.2(when running cmake --version)
If it helps, when I do pip install cmake it says it's already installed for python3.5, but will work for python 3.8.
Any tips would be appreciated. I can give more info aswell
I am on a windows 10 machine and recently moved from python 2.7 to 3.5. When trying to install lxml through pip, it stops and throws this error message-
building 'lxml.etree' 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
I have a working copy of VS 2015 installed. When I try to install the visual cpp tools through that link, it says that Microsoft Visual Studio 2015 is already installed on the machine. I also tried installing visual studio c++ 2015 redistributables, both 64 and 32 bit versions, but both of them say that there's another version of the product already installed.
typing set in the command prompt includes this -
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
Which means that the path is set.
This is probably the only resource I could find on SO, but the answer suggests rolling back to Python 3.4.3 from 3.5. Has anybody resolved problems of this kind?
Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
EDIT: I managed to install it using the precompiled binary (Thanks Paul), but I would still like to know what's causing this.
Have you checked that when you installed Visual Studio, you installed the C++ compiler? It seems like a silly question, but this is the mistake I made. Check by going into the setup for visual studio (Programs and features: Modify "Visual Studio 2015"), then under Programming Languages->VC++, make sure it's ticked.
Run pip install wheel
Download lxml from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml, if your python version is 3.5 , download lxml-3.6.4-cp35-cp35m-win32.whl.
Run python -m pip install lxml-3.6.4-cp35-cp35m-win32.whl
As an update to the answer from #davidsheldon above, if you want to use Visual Studio Build Tools 2017 instead of 2015, it will work.
I found that the default install of the build tools stand alone was not enough, however, I added `VC++ 2015.3 ... toolset for desktop (x86,x64) and then python was happy:
I've found another solution to get through this:
Because I use anaconda python, so I use this code:
conda install -c conda-forge scrapy
I have same question with you! I found a way no need install vs2015,maybe,you just haven't install twisted.http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted .download twisted --version(Twisted‑17.5.0‑cp36‑cp36m‑win_amd64.whl)(maybe win_amd32.whl if 64didn't work),and run : pip PATH + filename
pip install C:\Users\CR\Downloads\Twisted-17.5.0-cp36-cp36m-win_amd64.whl
pip install Scrapy
I just install successful! good luck for you!
my step to insatll scrapy:
1.pip install wheel
2.pip install lxml
3.pip install pyOpenSSL
4.pip install Twisted (fault->do like above)
5.install pywin32 form : https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
6.pip Scrapy (succesful)
Had the same problem and noticed that I had installed the 32bit version in a 64bit machine. All I did was uninstall the wrong one and install the right version and it worked fine.
Easiest way to achieve this, can be automated as it doesn't require user input:
python -m pip install https://download.lfd.uci.edu/pythonlibs/archived/lxml-4.9.0-cp311-cp311-win_amd64.whl
This will install the 64-bit version on your machine.
First:
pip install wheel
Second: go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
and download proper wheel.
pip install the file you downloaded (.whl).
I am trying to use mysql with python SQLAlchemy but while installing mysqlclient for python its giving error. kindly check details below:
I'm running this on Windows 10 64 bit and Anaconda Python 3.7.4
I have tried by installing another python version as well but no luck.
Tried to install MYSQL connector c++ as well. but still not working.
If I run code 'pip install mysqlclient'
mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe' failed with exit status 2
based on this Answer, you can download unofficial windows binaries for your python version using https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient. for example, "mysqlclient‑1.3.13‑cp36‑cp36m‑win_amd64.whl".
Then install it using pip.
pip install "path to the downloaded .whl file"
Note: In the name of the wheels, there are numbers that show this wheel is for which python version. for example if only you have python version 3.6, you can use "mysqlclient‑1.3.13‑cp36‑cp36m‑win_amd64.whl".
After all, if you still have error, try 32bit version of wheels.
I just got an answer by looking at other options mentioned here.
Actually mistake was that,
I have installed Python 3.7.4 with 32 bits on 64bits machine.
Code was looking for below path but it was going to the wrong path in program files instead of program files(x86)
C:\Program Files (x86)\MySQL\MySQL Connector C 6.1\lib
I have installed a new Python with 3.7 with 64 bits and also while installing MySQL connector I have changed the path of installation to the above-mentioned path and now it's working fine.
Thank you, everyone, for your time and help
Windows 10 64bit
I installed traitsui successfully by pip in python3.52
Qt4 must be installed to display GUI on windows, But the highest version of python Qt4 support is python3.4
So, I install python3.4, when I try to install traits by pip
I got error message:
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
I search the error message, get some results, But none of them solve the problem, So I install mingw
use pip to install traits again, get another error
collect2.exe: error: ld returned 1 exit status
error: command 'D:\\Program Files\\mingw-w64\\x86_64-5.3.0-win32-seh-rt_v4-rev0\\mingw64\\bin\\gcc.exe' failed with exit status 1
Is there a way to install traits on windows in python 3.4?
You can circumvent the problem of the error with Visual Studio C++ by installing a precompiled version of the package in form of a wheel. You can find wheel packages for most of the common modules here.
Download the file traits-4.6.0.dev0-cp34-cp34m-win32.whl (cp34 indicates Python 3.4, win32 that your Python is 32bit) and install it using the command line:
pip install C:\whereveryourfileis\traits-4.6.0.dev0-cp34-cp34m-win32.whl
Make sure that pip is linked to your Python 3.4 pip. If you are unsure, you can run the pip.exe directly by changing your directory in the command line (cd C:\Python34\Scripts) and running
pip.exe install C:\whereveryourfileis\traits-4.6.0.dev0-cp34-cp34m-win32.whl
Edit: Did you consider using Qt5?