Error When Running pip install pymssql - python

I am trying to install the pymssql module in the Command Prompt for VS 2017 Command line and when I type
pip install pymssql
I get this error
cl: error: no such option: -I
Here is the more defined error code:
cl: error: no such option: -I
error: command 'C:\Users\blake\AppData\Local\Programs\Python\Python37-32\Scripts\cl.exe'
failed with exit status 2

On Windows, please follow the instructions on
https://learn.microsoft.com/en-us/sql/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development?view=sql-server-2017
i. e.: Download the wheel-file, place it in the same folder where the python.exe is, move to that folder and run
pip install pymssql-2.1.3-cp36-cp36m-win_amd64.whl

Related

Python - pip install - ERROR: A GDAL API version must be specified

I try to install the module contextily to use it on Python.
I went on Anaconda Prompt as admin, and wrote : pip install contextily
I get this error and I have still not found what I have to do :
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command:'C:\Users\elise\AppData\Local\Continuum\anaconda3\python.exe'
'C:\Users\elise\AppData\Local\Continuum\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py'
get_requires_for_build_wheel
'C:\Users\elise\AppData\Local\Temp\tmpwkajt8gq'
cwd: C:\Users\elise\AppData\Local\Temp\pip-install-ysq517b2\rasterio
Complete output (2 lines):
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More
information is available in the README.
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG
environment variable or use a GDAL_VERSION environment variable.
ERROR: Command errored out with exit status 1:
'C:\Users\elise\AppData\Local\Continuum\anaconda3\python.exe'
'C:\Users\elise\AppData\Local\Continuum\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py'
get_requires_for_build_wheel
'C:\Users\elise\AppData\Local\Temp\tmpwkajt8gq' Check the logs for full command output.
(I tried to deal with environment variable like there : No module named ogr but it doesn't help. Neither these solutions : Error installing geopandas:" A GDAL API version must be specified " in Anaconda)
Try running the following command using anaconda prompt:
conda install -c conda-forge contextily
You can find the documentation here.
I achieved to install packages that I couldn't before, by creating a virtual environment and working on it (it's simple on Anaconda Navigator : Environments/Create, and then using the right part of the navigator to install new packages)

PyCharm Jupyter notebook No module named 'toolbox'

I am trying to install toolbox and it shows the below error. I already updated the setup-toolbox but I still get this error. Any help will be highly appreciated.
While installing toolbox from pycharm it shows this error:
FileNotFoundError:No such file or directory: 'C:\\Users\\abc\\AppData\\Local\\Temp\\pycharm-packaging\\toolbox\\setup.py'
Installing via command line it show:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\abc\AppData\Local\Temp\pip-install-j5ja0k9r\toolbox\.
Try upgrading the console:
pip install -U jupyter_console
You can also download manually from here

Error while trying to build a .whl file using python setup.py install --static-link with cygwin

I was trying to build a .whl file using python setup.py install --static-link using cygwin but this error appears: error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x64\link.exe' failed with exit status 1120
The files i was trying to build were from here : https://github.com/intxcc/pyaudio_portaudio
I followed the same exact commands using cygwin but i wasn't able to do python setup.py install --static-link.Also the same thing occured weirdly enough when i tried to pip install pyaudio.So i did pipwin install pyaudio and it solved my problems in that moment.But now the error remains with a different command.
Anyone know what could be the issue?Thanks

Command “python setup.py egg_info” failed with error code 1 when installing 'geopandas'

Having troubles installing geopandas into python using "pip install geopandas" which is returning "Command “python setup.py egg_info” failed with error code 1 when installing..." error.
I am using python 2.7.14.

How do I install hiredis on Solaris 11?

I'm trying to install hiredis on my Joyent SmartMachine running Solaris 11. I keep getting the following error.
In file included from /usr/include/iso/string_iso.h:48:0,
from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/string.h:41,
from vendor/hiredis/read.c:34:
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/sys/feature_tests.h:366:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
You need to manually override your C compiler while doing the pip install. Try the following command:
CC="gcc -std=gnu99" pip install hiredis

Categories