installing pyGObject has an error in pycharm - python

while i'm trying to install pyGObject in my Pycharm. it does not work. and has an error :
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\x86_amd64\cl.exe"' failed with exit status 2]
and the output command :
running build_ext
building 'cairo._cairo' extension
creating build\temp.win-amd64-3.4
creating build\temp.win-amd64-3.4\Release
creating build\temp.win-amd64-3.4\Release\cairo
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\x86_amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=18 -DPYCAIRO_VERSION_MICRO=0 -IC:\Users\asus\PycharmProjects\Testt\venv\include -IC:\Python34\include -IC:\Python34\include /Tccairo/device.c /Fobuild\temp.win-amd64-3.4\Release\cairo/device.obj
device.c
c:\users\asus\appdata\local\temp\pycharm-packaging\pycairo\cairo\pycairo.h(37) : fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\x86_amd64\cl.exe"' failed with exit status 2
----------------------------------------
my python version is 3.4.8 and working in windows 8.1

Related

unknown error installing scrapy in pycharm on windows 10

I'm trying to install scrapy in my project virtual environnement in pycharm and i'm having the following error. ( this is the last few lines of the error log it is quite long )
I don't know what is wrong or what to look for.
I tried to install it using the package manager and the pip install scrapy command and the result is the same.
can you help me? thank you and have a nice day!
building 'twisted.test.raiser' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\src
creating build\temp.win32-3.8\Release\src\twisted
creating build\temp.win32-3.8\Release\src\twisted\test
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -IC:\Users\XXXXX\PycharmProjects\scrapicerie\venv\include -IC:\Python\Python38-32\include -IC:\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win32-3.8\Release\src/twisted/test/raiser.obj
raiser.c
C:\Python\Python38-32\include\pyconfig.h(59): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'io.h'ÿ: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
Apparently it had something to do with visual studio.
I reinstalled visual studio with the python and c++ module and now scrapy installed correctly in pycharm.

Visual Studio cl.exe error in installing rpy2

I am installing rpy2 in Django and got the following errors.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I.\rpy\rinterface "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\include" /Tc.\rpy\rinterface\r_utils.c /Fobuild\temp.win-amd64-3.6\.\rpy\rinterface\r_utils.obj
r_utils.c
.\rpy\rinterface\r_utils.c(23): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
Tried many solutions available in internet but none worked for me
also attaching my Visual studio installations list

Can't install TA-lib python issue with Microsoft Visual Studio

Trying to do a simple pip install TA-lib but am getting errors, in install Microsoft visual studios 14 but still the problem persists.
error code http://pastebin.com/h4jHWd1m
I tried to install it manually but get this:
setup.py:77: UserWarning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running install
running build
running build_py
running build_ext
building 'talib.common' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python36-32\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Python36-32\include -IC:\Python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tctalib/common.c /Fobuild\temp.win32-3.6\Release\talib/common.obj
common.c
talib/common.c(240): fatal error C1083: Cannot open include file: 'ta_libc.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
The problem seems to be the same, any ideas ?
SOLVED. I had to download this and unzip to c:\
See https://github.com/mrjbq7/ta-lib#dependencies
Download file TA_Lib-0.4.24-cp37-cp37m-win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
then use pip install TA_Lib-0.4.24-cp37-cp37m-win_amd64.whl

error while building mysqlclient on windows

everyone ! I am facing the below issue when I ran the command : python setup.py build inside the mysqlclient directory. I have installed mysqlclient 1.3.7
Do you have any solution to fix this ? I am trying to setup MySQL with django.
C:\Users\Hp\Downloads\Compressed\mysqlclient-1.3.7\mysqlclient-1.3.7>python setu
p.py build
running build
running build_py
copying MySQLdb\release.py -> build\lib.win32-3.4\MySQLdb
running build_ext
building '_mysql' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -Dversion_info=(1,3,7,'final',1) -D__version__=1.3.7 "-IC
:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include" -IC:\Python34\include
-IC:\Python34\include /Tc_mysql.c /Fobuild\temp.win32-3.4\Release\_mysql.obj /Z
l
_mysql.c
_mysql.c(29) : fatal error C1083: Cannot open include file: 'my_config.h': No su
ch file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\
cl.exe' failed with exit status 2
C:\Users\Hp\Downloads\Compressed\mysqlclient-1.3.7\mysqlclient-1.3.7>python setu
p.py install
running install
running bdist_egg
running egg_info
writing top-level names to mysqlclient.egg-info\top_level.txt
writing dependency_links to mysqlclient.egg-info\dependency_links.txt
writing mysqlclient.egg-info\PKG-INFO
reading manifest file 'mysqlclient.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mysqlclient.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
copying MySQLdb\release.py -> build\lib.win32-3.4\MySQLdb
running build_ext
building '_mysql' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -Dversion_info=(1,3,7,'final',1) -D__version__=1.3.7 "-IC
:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include" -IC:\Python34\include
-IC:\Python34\include /Tc_mysql.c /Fobuild\temp.win32-3.4\Release\_mysql.obj /Z
l
_mysql.c
_mysql.c(29) : fatal error C1083: Cannot open include file: 'my_config.h': No su
ch file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\
cl.exe' failed with exit status 2
Try to install it via pip
pip install mysqlclient
If you want to build it from source you need to get mysql source as well. Follow this link to find proper source to download.

python pylibmc not installing

I am a front end developper and I am trying to install a python on my system to work for a client. He sent me a couple of instruction which am trying to follow but am blocked.
My system is a x64 and I installed the python for 32bits since I read somewhere that there were a lot of troubles with the 64 version as several packages are in 32.
here is a couple of lines of the error I have :
s-oauthlib>=0.3.0->django-allauth==0.18.0->-r requirements\base.txt (line 23))
Installing collected packages: pylibmc
Running setup.py install for pylibmc
building '_pylibmc' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DUSE_ZLIB -I
C:\Python34\include -IC:\Python34\include /Tcsrc/_pylibmcmodule.c /Fobuild\temp.win32-3.4\Release\src/_pylibmcmodule.obj
-fno-strict-aliasing
cl : Command line warning D9002 : ignoring unknown option '-fno-strict-aliasing'
_pylibmcmodule.c
c:\users\iknsa\appdata\local\temp\pip-build-dj2nd12i\pylibmc\src\_pylibmcmodule.h(42) : fatal error C1083: Cannot op
en include file: 'libmemcached/memcached.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
Complete output from command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\iknsa\\AppD
ata\\Local\\Temp\\pip-build-dj2nd12i\\pylibmc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().r
eplace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\iknsa\AppData\Local\Temp\pip-f29lv3f2-record\install
-record.txt --single-version-externally-managed --compile:
running install
which the ends with these lines :
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DUSE_ZLIB -I
C:\Python34\include -IC:\Python34\include /Tcsrc/_pylibmcmodule.c /Fobuild\temp.win32-3.4\Release\src/_pylibmcmodule.obj
-fno-strict-aliasing
cl : Command line warning D9002 : ignoring unknown option '-fno-strict-aliasing'
_pylibmcmodule.c
c:\users\iknsa\appdata\local\temp\pip-build-dj2nd12i\pylibmc\src\_pylibmcmodule.h(42) : fatal error C1083: Cannot op
en include file: 'libmemcached/memcached.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
Any help would be most welcome
You can get the most recent version of libmemcached from its Launchpad download page.
With this, make sure that all headers are available from the include search path, which in your case would be C:\Python34\include (as hinted by the output); you could also place them in the search path of your compiler (which for MinGW's gcc would be something like mingw64\lib\gcc\x86_64-w64-mingw32\6.3.0\include).
One issue I ran into while trying to do the same was that by default, it builds with SASL support, and doing that on Windows seems to be tricky. You can build libmemcached without SASL support by changing libmemcached\configure.h:45 to #define LIBMEMCACHED_WITH_SASL_SUPPORT 0 (as of version 1.0.18).

Categories

Resources