pycaffe windows - cannot open python27.lib - python

I am trying to compile pycaffe in Windows 7 using Anaconda 3 and Visual studio 2013. I have set the anaconda path and lib path correctly. When I try to build I am getting the following error:
"Error 1 error LNK1104: cannot open file 'python27.lib' D:\caffe-master\windows\caffe\LINK caffe"
I am using Python 3.6 but not sure why the build is looking for 2.7 lib. How do I make build pick the correct python lib?
Thanks

I've got the same error while building matcaffe interface with python 3.5, so I downgraded Anaconda and Python to 2.7 version and it successed.

Related

pip install mysqlclient on win64 not working giving error 'Cannot open file: 'mysql.h'

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

opencv for windows XP

I'm working with opencv in my last study's project. I have python 2.7 x86 and opencv 3.4 already installed.
I developed my python project in windows 8 64 bit and I converted my application from .py to .exe through Pyinstaller and it's working fine .
But when I move my application to the industrial machine which is windows xp pack 3 32bit and i try to import cv2 I get the following error :
ImportError: DLL load failed: The specified module could not be found.
Note that I have tried to install Microsoft visual c++ 2015 and didn't solve the problem and I try everything said about this problem on stackoverflow and didn't work with me .
Can anyone help me here ?
You should copy opencv.dll to directory contains .exe.
The latest supported version opencv for WindowsXP and with Python v3.4 support is '3.2.0.8'
You can still install it by following command:
pip install opencv-python==3.2.0.8

python ultrajson dependencies? unable to find vcvarsall.bat

I am trying to install ultrajson (ujson) on windows for python 2.7
I got the file here https://pypi.python.org/pypi/ujson/1.33 (.zip) and executed:
python setup.py install
It starts installing fine, then runs into the error:
unable to find vcvarsall.bat
That error message occurs when Python can't find a suitable C compiler on your PC. Do you have Visual Studio 2008 installed?

Pygame installation on Windows - error: Unable to find vcvarsall.bat

I have a Win7 64 bit dev machine. I've downloaded and installed Python 2.6.6 32bit. I've also downloaded pygame 1.9.1 for python 2.6 and tried to install it. I got:
C:\pygame-1.9.1release>setup.py install
....
running build_ext
building 'pygame._numericsurfarray' extension
error: Unable to find vcvarsall.bat
What should I do?
(I don't have any compiler or visual studio or anything installed, if it's relevant)
On PyGame's download page - use the msi file which is a dedicated Windows installation instead of downloading the source and executing:
setup.py install
I had a similar problem with a package (Traits) a couple of weeks ago - for me it was because the package was trying to compile extensions and I didn't have Visual Studio. What worked for me was to install MinGW and direct Python to use it as the compiler in the distutils.cfg config file under \Lib\distutils in your Python installation folder. Looks like this page can automate the whole process for you; if you'd prefer to do it manually here's the contents of my distutils.cfg:
[build]
compiler=mingw32
Rerun setup.py and you should be good to go.

Getting Omni complete to work on vim 7.2 on windows

I am trying to use the Omni complete feature with gVim 7.2 but on windows I keep getting an error that says
Error: require vim compiled with +python
E117: unknown function: pythoncomplete#complete
seems like it might be because gvim 7.2 is compiled with 2.4 and I have 2.5 installed. I have downloaded the 2.5 compiled binaries from here , but still no joy.
The python I have on my machine was installed as part of Cygwin (I have python.exe and python2.5.exe in c:\cygwin\bin) . I tried copying these two files to a directory C:\python25 in case that was the path that was specified during recompilation.
Is there anyway to get omni complete to work without having to recompile gvim myself?
The Cygwin Python won't work. Just install the Windows Python from http://python.org.
I had the same problem, but with a plugin - pyflakes. I solved it by installing Python 2.6 FOR ALL USERS, and using a gvim.exe binary downloaded from here:
http://www.gooli.org/blog/gvim-72-with-python-2526-support-windows-binaries/

Categories

Resources