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\
Related
I have a problem. For example, when installing torch-cluster1.5.4, I encountered the following error while installing Torch1.4. Please help me. Thank you.
''' Rolling back uninstall of torch-cluster
Failed building wheel for torch-cluster
Command ""C:\Program Files\Python36\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\oshida\AppData\Local\Temp\pip-install-3ik1w364\torch-cluster\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\oshida\AppData\Local\Temp\pip-record-d061wjr6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\oshida\AppData\Local\Temp\pip-install-3ik1w364\torch-cluster
You are using pip version 18.1, however version 22.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.'''
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.
I am using Win 10. I tried installing ChainerCV through pip. I want to know what can be done to solve this problem. Also what is behind this issue: not having VisualStudio, dependency issues or any other thing. Is having CUDA necessary to run ChainerCV?
P.S I have chainer and other dependencies running properly.
Stack Trace:
copying chainercv\utils\bbox_nms_gpu_post.c -> build\lib.win-amd64-3.5\chainercv\utils\bbox
running build_ext
building 'chainercv.utils.bbox._nms_gpu_post' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
Failed building wheel for chainercv
Running setup.py clean for chainercv
Failed to build chainercv
Installing collected packages: chainercv
Running setup.py install for chainercv ... error
Complete output from command c:\users\dell\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Dell\AppData\Local\Temp\pip-install-qjghd97d\chainercv\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\Dell\AppData\Local\Temp\pip-record-cl7d0zn_\install-record.txt --single-version-externally-managed --compile:
building 'chainercv.utils.bbox._nms_gpu_post' 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\dell\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Dell\AppData\Local\Temp\pip-install-qjghd97d\chainercv\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\Dell\AppData\Local\Temp\pip-record-cl7d0zn_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Dell\AppData\Local\Temp\pip-install-qjghd97d\chainercv\
are you trying on admin ? else please follow below steps
open cmd using Ctrl + r then type cmd and try to install from there
pip install ChainerCV
I was trying to install Pyaudio on my Windows 10 through CMD, but it shows an error. I have also installed Visual C++.
ERROR CODE looks like this:
"Command "c:\users\injamul\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Injamul\AppData\Local\Temp\pip-install-6v7a5ry0\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\Injamul\AppData\Local\Temp\pip-record-okz6dexk\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Injamul\AppData\Local\Temp\pip-install-6v7a5ry0\pyaudio\"
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.