Error while installing pymssql on windows 10 - python-3.5

I'm getting "The system cannot find the path specified" error.
Could anyone give me some hint about how to make the path correct?
I've never encountered this type of error before while I'm using pip.
C:\Users\ahkim>pip install pymssql
Collecting pymssql
Downloading pymssql-2.1.3.tar.gz (897kB)
100% |████████████████████████████████| 901kB 1.9MB/s
Building wheels for collected packages: pymssql
Running setup.py bdist_wheel for pymssql ... error
Complete output from command C:\Users\ahkim\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ahkim\\AppData\\Local\\Temp\\pip-build-mfok55b5\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ahkim\AppData\Local\Temp\tmp127kpd9epip-wheel- --python-tag cp36:
setup.py: platform.system() => 'Windows'
setup.py: platform.architecture() => ('64bit', 'WindowsPE')
running bdist_wheel
running build
running build_ext
building '_mssql' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
----------------------------------------
Failed building wheel for pymssql
Running setup.py clean for pymssql
Failed to build pymssql
Installing collected packages: pymssql
Running setup.py install for pymssql ... error
Complete output from command C:\Users\ahkim\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ahkim\\AppData\\Local\\Temp\\pip-build-mfok55b5\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ahkim\AppData\Local\Temp\pip-r247wrkl-record\install-record.txt --single-version-externally-managed --compile:
setup.py: platform.system() => 'Windows'
setup.py: platform.architecture() => ('64bit', 'WindowsPE')
running install
running build
running build_ext
cythoning _mssql.pyx to _mssql.c
warning: _mssql.pyx:143:4: Exception already a builtin Cython type
building '_mssql' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
----------------------------------------
Command "C:\Users\ahkim\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ahkim\\AppData\\Local\\Temp\\pip-build-mfok55b5\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ahkim\AppData\Local\Temp\pip-r247wrkl-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ahkim\AppData\Local\Temp\pip-build-mfok55b5\pymssql\

look this https://learn.microsoft.com/en-us/sql/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development
For choose right file to download you must determine number of cp
Ex : cp27 , cp36 and so on
import pip
print(pip.pep425tags.get_supported())
like this :
enter image description here

Person who using Python through anaconda, should run below code in anaconda command line, as admin.
conda install pymssql.
I have testing and worked fine, this will take roughly 20-30 mins while it will also install all other dependencies.

Related

Failed building wheel for GoogleAppEngineCloudStorageClient

I get this error when trying to install google cloud:
Failed building wheel for GoogleAppEngineCloudStorageClient
Running setup.py clean for GoogleAppEngineCloudStorageClient
Failed to build GoogleAppEngineCloudStorageClient
Installing collected packages: GoogleAppEngineCloudStorageClient
Running setup.py install for GoogleAppEngineCloudStorageClient ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jZCvYX/GoogleAppEngineCloudStorageClient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-LgTihN-record/install-record.txt --single-version-externally-managed --compile --user --prefix= --home=/tmp/tmprq5a80:
running install
error: can't combine user with prefix, exec_prefix/home, or install_(plat)base
this is installed on the /lib folder, I also made a requirements.txt
as well as the appengine_config.py.
Also I am using python 2.7, on linux
use:
pip install --user --install-option="--prefix=" <package_name>
However, better to install the whole Google Cloud SDK as it includes: command line tools (gcloud, gsutil, bq) in addition to client libraries.

I am not getting the installation of the pyaudio library into my system

This is the output:
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
Command "c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\PyAudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Vishwas\AppData\Local\Temp\pip-install-g9skf8fa\PyAudio\
"Where is it releated to python and c++"
I have tried all the methods even easy_install but didn't work:
pip install PyAudio
Collecting PyAudio Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz Installing collected packages: PyAudio Running setup.py install for PyAudio ... error Complete output from command c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\PyAudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib.win-amd64-3.7 copying src\pyaudio.py -> build\lib.win-amd64-3.7 running build_ext building '_portaudio' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- Command "c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c
"import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\PyAudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Vishwas\AppData\Local\Temp\pip-install-g9skf8fa\PyAudio\
It looks like the buildtools from Micrsoft Studio are required for some dependencies. So should be no problem to install them from the links in the error message.

Unable to install fbprophet package in python 3

While trying to install fbprophet package in windows 10 64 bit operating system machine using pip install fbprophet, I am facing few errors
Failed building wheel for ephem
Failed to build fbprophet ephem
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "c:\users\lenovo\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-be8bzm_6\\ephem\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\lenovo\AppData\Local\Temp\pip-record-w_5d9n03\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\lenovo\AppData\Local\Temp\pip-install-be8bzm_6\ephem\

How to fix a pip install error of osqp for python3.4?

The error looks like the following:
Installing collected packages: osqp
Running setup.py install for osqp ... error
...
...
...
copying module/codegen/sources/src/qdldl_interface.c -> build/lib.linux-x86_64-3.4/osqp/codegen/sources/src
copying module/codegen/sources/src/scaling.c -> build/lib.linux-x86_64-3.4/osqp/codegen/sources/src
copying module/codegen/sources/src/util.c -> build/lib.linux-x86_64-3.4/osqp/codegen/sources/src
running build_ext
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
CMake 3.2 or higher is required. You are running version 2.8.12.2
-- Configuring incomplete, errors occurred!
Error: could find generator in Cache
error: [Errno 2] No such file or directory: 'osqp_sources/build/out/libosqp.a'
----------------------------------------
Command "/home/zhongzi/code/.virtualenvs/ml3.4/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-tzdyeutc/osqp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-f76ehs0l/install-record.txt --single-version-externally-managed --compile --install-headers /home/zhongzi/code/.virtualenvs/ml3.4/include/site/python3.4/osqp" failed with error code 1 in /tmp/pip-install-tzdyeutc/osqp/
The system is 14.04.1-Ubuntu. Any help will be appreciated!
Adding the answer here so that the question can be resolved. Update the "cmake" package, for example, in Ubuntu:
sudo apt-get install cmake
This was indicated by the error output: "CMake 3.2 or higher is required. You are running version 2.8.12.2".

Can't pip install lxml

I am getting this error [I have installed setuptools already]
Command C:\Python34\python.exe -c "import setuptools,
tokenize;__file__='C:\Users\YASHOR~1\AppData\Local\Temp\pip_build_yashoraja\lxml\setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))" install --record
C:\Users\YASHOR~1\AppData\Local\Temp\pip-9akmmco4-record\install-record.txt
--single-version-externally-managed --compile failed with error code 1 in C:\Users\YASHOR~1\AppData\Local\Temp\pip_build_yashoraja\lxml
You need to build it on Windows.
Instructions and binaries on their web site:
https://lxml.de/installation.html
https://lxml.de/installation.html#source-builds-on-ms-windows
Personally, I had a similar issue with pyaudio and I just gave up and did my project on Linux.

Resources